Keeping Session On StateServer
To Save Session in StateServer we can add the following section in the webConig of an application.
The <SessionState></SessionState> tag has to be used inside system.web.
Also look the timeout set to 40 minutes.
This means: Session will expire after 40 minutes of inactivity, not after 40 min of starting activity.
<configuration> <system.web> <!--Session Keeping on StateServer--> <sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" cookieless="false" timeout="40"/> </system.web> </configuration>
Posted on August 25, 2010, in ASP.net, WebConfig and tagged Session, Session Timeout, StateConnectionString, StatServer Setting, Using StateServer for Session, WebConfig. Bookmark the permalink. Leave a Comment.
Leave a Comment
Comments (0)