且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

会话值丢失

更新时间:2023-11-13 23:07:22

Use timeout in web.config, can also use timespan--20 minutes is default, also The timeout attribute cannot be set to a value that is greater than 525,601 minutes (1 year) for the in-process and state-server modes.

<sessionstate>
    mode="[Off|InProc|StateServer|SQLServer|Custom]"
    timeout="number of minutes"............

   ....../></sessionstate>





msdn

解决过期的ASP.NET会话状态和选项