【发布时间】:2015-05-30 06:49:49
【问题描述】:
我想在 asp.net web 配置文件中设置会话超时。我用谷歌搜索了最好的方法。然后我得到了多个结果。我很困惑在代码后面设置会话状态。我选择了一个合适的会话时间out.我能得到关于它的描述吗
code 1:
<configuration><system.web>
<compilation debug="true" targetFramework="4.5"/>
<httpRuntime targetFramework="4.5" />
<sessionState timeout="20000"></sessionState>
code 2:
<sessionState mode="InProc" cookieless="false" timeout="2000"/>
code 3:
<sessionState timeout="40" />
【问题讨论】:
标签: asp.net session c#-4.0 web-config