asp.net web.config 超时

发布于 2024-11-27 08:04:17 字数 401 浏览 0 评论 0原文

以下是我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱格式化 2024-12-04 08:04:17

我会检查应用程序池的回收时间。这可能就是原因,因为我认为它默认为 20 分钟左右。

I would check the application pools recycle time. This is probably the cause as I think that it defaults to something like 20 minutes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文