.net - sessionState 超时不工作

标签 .net asp.net session iis-7 session-timeout

我已将 session 状态超时设置为 60,即 1 小时。但是,用户在 20 分钟后仍然收到 session 过期消息。

我们使用 Windows Server 2008 来托管 asp.net 应用程序。谁能告诉我为什么 session 会在 20 分钟后过期?

我正在使用 Windows 身份验证。下面是我的网络配置:

<sessionState  timeout="60" />

最佳答案

检查 IIS session 量。它可能与 .NET session 量不同。

Configure Session Time-out (IIS 7)
另见 this question

By default, the session expires when the user has not requested or refreshed a page in the ASP application for 20 minutes

关于.net - sessionState 超时不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6249314/

相关文章:

c# - 如何在 Outlook 2013 中禁用特定存储的索引?

c# - 指定布局时 MVC Controller 操作被调用多次

c# - 将 jquery json 传递给 asp.net httphandler

asp.net - 使用 aspnet_regiis 加密配置节

session - 检测是否可以在 Symfony 2 中访问请求服务?

.net - 为什么 Dapper 不需要开放连接?

c# - RaisePropertyChanged 的​​重要性是什么?

C#:字符串作为事件的参数?

PHP 当 session 超时时,它会重定向整个页面而不是通过 ajax 加载的页面

python - 有没有一种简单的方法可以让 flask 中的 session 超时?