Tags

, , , , ,


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>

Advertisements