Click here to Skip to main content
15,900,566 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
If i have Employee class in my application and i have a property as a static i.e. EmployeeName.
and host my application that time
user1 accesses that property and assign value to that property.
the after that
user2 accesses that property and assign value to that property and user1 get the latest value of user2 how can I avoid that.
Posted
Comments
Praveen Kumar Upadhyay 17-Dec-14 8:20am    
Tell us your exact requirement.

1 solution

You should cache that value not in static property, but into the Session cache. For details see in MSDN[^], and/or the next article: Exploring Session in ASP.NET[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900