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

What is difference between session and cookies in asp net?

995


what is meant by sitemapnode ?

1957


What is difference between Fragment Caching and Page Caching in ASP.NET?

977


What is web api and why to use it?

1000


Which authentication uses a combination of windows and iis authentication?

1028


What is asp.net file?

1119


What is the use of web.config and machine.config files?

1089


What’s the use of “GLOBAL.ASAX” file?

1034


What is ispostback method in asp.net? Why do we use that?

1134


What is css in asp.net?

1008


What are the 3 levels at which content pages can be attached to Master Page?

1038


Explain the boxing and unboxing concept in .net?

800


What do you mean by authentication?

1021


What is asp.net and its advantages?

936


What is session and cookies in asp.net?

978