cto*_*orx 2 asp.net forms-authentication
我有一个使用表单身份验证的ASP.NET Web应用程序.在web.config中,窗体身份验证超时值设置为"20"(我理解为20分钟).
我们正在看到一个问题,您将与该网站进行交互..(即点击链接按钮,执行回发等)并随机发送回登录页面进行身份验证.
似乎超时被遵守,但活动没有重新启动计数器.
任何想法在哪里查看或如何调试?
检查web.config中的slidingExpiration并确保将其设置为true
<authentication mode="Forms">
<forms loginUrl="~/Account/Login" timeout="2880" protection="All" slidingExpiration="true">
</forms>
</authentication>
Run Code Online (Sandbox Code Playgroud)
也是这个负载均衡的网站?确保会话信息不在流程中,或使用粘性会话.
| 归档时间: |
|
| 查看次数: |
6703 次 |
| 最近记录: |