【发布时间】:2015-03-12 17:00:47
【问题描述】:
我们在 .NET 4.5 上运行 MVC 应用程序,我正在处理 sessionState 和表单身份验证的会话超时:
web.config:
<system.web>
<sessionState timeout="1"></sessionState>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="2" />
</authentication>
<!-- some more tags ... -->
</system.web>
据此,我认为我应该在 1 分钟不活动后退出,但我没有。我确实会在 2 分钟后退出。
我想知道这是为什么?我们不会在会话中保存或存储任何内容,但这有关系吗?
【问题讨论】:
标签: asp.net asp.net-mvc forms-authentication