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?

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


Please Help Members By Posting Answers For Below Questions

Why do we use datasource in asp.net?

934


Why do we use web config?

909


Which library is used by the testers and developers to develop automated tests and create testing tools?

958


What is advantage of asp.net?

945


What is the life cycle of an asp.net page?

875


Explain Authentication mechanism in dotnet

1005


What are server activated objects?

1111


Explain the reason why the javascript validation not run on the asp.net button but run successfully on the html button?

999


Can we use html in asp.net?

893


What is the difference between session and application?

918


Explain the function of new view engine in asp.net? : asp.net mvc

991


How can we pass info between 2 asp.net pages?

1037


Where would you use an ihttpmodule, and what are the limitations of any?

985


Explain page output caching?

946


Which is faster union or union all?

957