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
精彩评论