开发者

For how long are session values available in state server mode in asp.net

Can you guys let me know for how long the session val开发者_高级运维ues will be available when the mode is state server? Thanks!


The session values will be lost when restarting the application. This can be caused by a lot of things (web.config change , iisreset, rebooting the box)

The session values will also be removed when the session ends. By default I think its 20 minutes of inactivity.

<sessionState mode="StateServer"
      stateConnectionString="tcpip=SampleStateServer:42424"
      cookieless="false"
      timeout="20"/>


It will store it until ASP.NET state service i.e your state server is running....so it will be lost if you restart it...more information here - http://msdn.microsoft.com/en-us/library/ms178586.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜