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 asp short for?
How to add DateTime Control in normal DataGrid Server Control?
What are the different types of events are occured when a client requests an ASP.NET page from IIS server?
What are sessions and cookies?
What is state management in .net?
What is Razor View Engine
Define common type system?
Can viewstate be accessed in another page?
what cut off mark for po's,what questions they asked for interview?
Which library is used by the testers and developers to develop automated tests and create testing tools?
Are there resources online with tips on asp to asp.net conversions?
Can a master page have more than one contentplaceholder?
Explain some of the major built-in objects in asp.net
Why we use asp.net for website development?
Dataset is the disconnected environment. suppose if you are binding records to gridview (disconnected environment) and you are making changes to the the grid but before updating the database if any other user modify the data, how will you avoid such problem?