If I update session state, should I lock it, too? Are concurrent accesses by multiple requests executing on multiple threads a concern with session state?
Answer Posted / kumar saurabh
Concurrent accesses aren't an issue with session state, for two reasons. One, it's unlikely that two requests from the same user will overlap. Two, if they do overlap, ASP.NET locks down session state during request processing so that two threads can't touch it at once. Session state is locked down when the HttpApplication instance that's processing the request fires an AcquireRequestState event and unlocked when it fires a ReleaseRequestState event.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is difference between session and cookies in asp net?
what is meant by sitemapnode ?
What is difference between Fragment Caching and Page Caching in ASP.NET?
What is web api and why to use it?
Which authentication uses a combination of windows and iis authentication?
What is asp.net file?
What is the use of web.config and machine.config files?
What’s the use of “GLOBAL.ASAX” file?
What is ispostback method in asp.net? Why do we use that?
What is css in asp.net?
What are the 3 levels at which content pages can be attached to Master Page?
Explain the boxing and unboxing concept in .net?
What do you mean by authentication?
What is asp.net and its advantages?
What is session and cookies in asp.net?