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 / 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 |
What is the difference between ASP and ASP.NET?
4 Answers Sans Pareil IT Services, TCS,
How to sign out from forms authentication?
write six HTTP request method?
What is s2s tracking?
Describe the .net base class library.
Which is better session or viewstate?
What are asynchronous callbacks?
how to update data set?
How can we inherit a static member?
How do I create a web form?
what to magage the state manament in asp.net with respect to in_prock and out_prock
What are the various session state management options provided by asp.net?