我已将 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/