Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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?



If I update session state, should I lock it, too? Are concurrent accesses by multiple requests execu..

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

Post New Answer

More ASP.NET Interview Questions

web farm .. how does session shuld be stored... if inproc used? does the session persists from one server to other.

2 Answers   TCS,


What does AspCompat="true" mean and when should I use it?

1 Answers   Infogain,


What is a global postback url?

0 Answers  


What is difference between view state and session state?

0 Answers  


How can you enable impersonation in the web.config file?

0 Answers  


Explain the difference between debug.write and trace.write? When should each be used?

0 Answers  


can sn.exe can be used before gacutil.exe

2 Answers   Accenture,


What is the difference between the get method () and post method ()?

0 Answers  


when the user control event occur in ASp page life cycle?

3 Answers   Microsoft,


different architectures of asp.net?

1 Answers  


Differentiate between a page theme and a global theme?

0 Answers  


What is s2s tracking?

0 Answers  


Categories