go to ISQsolutions.com | Contact Us

 
Q10295 - PRB: Intermittent ASP.NET sessions

The cause of this intermittency is the recycling of the application pool where your site lives.

The best way of handling this issue is configuring your application to use "Out of Process" sessions, which is very easily accomplished by configuring the web.config in the following way:

<configuration>
   <system.web>
      <sessionState mode="StateServer" cookieless="false" timeout="20" stateConnectionString="tcpip=127.0.0.1:42424" />
   </system.web>
</configuration>

Related Articles
Q10294 - PRB: Invalid Viewstate on ASP.NET pages.

Article Attachments
No Attachments Available.

Related External Links
ASP.NET Settings Schema
ASP.NET Session State
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 9/2/2005 2:46:00 PM.
Last Modified on 7/1/2011 5:43:00 AM.
Last Modified by ISQ Solutions Inc.
Article has been viewed 3840 times.
Rated 0 out of 10 based on 0 votes.
Print Article