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

In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?

1264


What are Caching techniques in .NET

1105


Can you explain one critical mapping? Performance issue which one is better?

950


Explain the various authentication mechanisms in asp.net.

1030


What is the difference between typeof() vs gettype()?

1168


I have an external link in my application say www.xyztest.com. Today this site works on http protocal. Tommorow it may run on https. So i cant hardcore the protocal in the site. When a user clicks on the link how can i know if the external site works on http or https and takes him to that place?

1959


What are sessions and cookies?

1021


What are custom user controls in asp.net?

1055


What is difference between ispostback and autopostback in asp net?

1103


What is the difference between client-side and server-side validations in ASP.NET?

1233


What is difference between cookies and cache?

1092


What is custom events?

1121


How can we call webservices in Banking Applications? and where we are using it?

2156


Which is better viewstate or session?

979


How to prevent client side validation from the ASP.NET validation controls?

1150