19
我的MVC 5网站有web.config中像这样:MVC 5会话超时
<authentication mode="Forms">
<forms name=".ADAuthCookie" loginUrl="~/Account/Login"
timeout="2880" slidingExpiration="true" protection="All" />
</authentication>
但超时不起作用。无论我在这里给予什么价值都没有关系,它总是在20-30分钟后过期。我如何维护用户登录时间更长或直到他们登出?
有没有什么办法可以使用“In-Proc”来实现?或者我在这里失去了一些东西?
这个我试过,但验证的登录等待,甚至超越了'timeout'时间后仍然有效。 –
@OldGeezer我猜会话超时应该> =您的表单身份验证超时。 – Rachmaninoff