asp.net web.config 超时
以下是我的 web.config 文件中的一个片段:
<system.web>
<sessionState timeout="1440"></sessionState>
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="1440"
cookieless="UseCookies"
/>
</authentication>
我收到的会话过期时间早于 1 天(一小时左右)。是否有任何其他 IIS 或 ASP.NET 设置可能会影响此问题? (该应用程序未通过代码设置任何超时)。
Here is a snippet from my web.config file:
<system.web>
<sessionState timeout="1440"></sessionState>
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="1440"
cookieless="UseCookies"
/>
</authentication>
I am getting sessions expiring much sooner than 1 day (within an hour or so). Are there any other IIS or ASP.NET settings that could be affecting this? (the app is not setting any timeouts from code).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会检查
应用程序池
的回收时间。这可能就是原因,因为我认为它默认为 20 分钟左右。I would check the
application pool
s recycle time. This is probably the cause as I think that it defaults to something like 20 minutes.