Windows Server 2019上的本地II Express上的ASP.NET Web应用程序会话超时问题?
我有一个ASP.NET 4.X MVC应用程序,该应用程序托管在我们在IIS Express上的本地Windows 2019服务器上。
在web.config文件中,会话超时已配置为8小时(进程中的会话模式)。这意味着,如果用户登录,则他的shoud登录了8个小时,但这不会发生。在本地网络上使用此应用程序的最终用户,他们在几分钟后就会注销,并且必须一次又一次登录。
我什至在IIS设置上配置了这次,但仍然没有成功。
我缺少什么?
I have an ASP.NET 4.x MVC application which is hosted on our local Windows 2019 Server on IIS Express.
In web.config file session timeout is configured for 8 hours (Session mode in process). Which means if a user logins he shoud remain logged in for 8 hours, but this is not happening. End users who are using this application on local network, they get logout just after few minutes and they have to log in again and again.
I have even configured this time on IIS settings but still no success.
Anything I am missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您可能还需要通过为cookiuthentication提供商设置ValidateInterval来修改startup.cs文件。
在下面,您可以在我的应用程序中找到如何处理它的示例,在我的应用程序中,自动登录时间增加到60分钟:
I believe you might need also to modify Startup.cs file by setting validateInterval for CookieAuthentication Provider.
Below you can find example how it has been handled in my application where time of automatic logging out was increased to 60 min: