【发布时间】:2010-12-12 10:46:02
【问题描述】:
使用默认的 ASP.NET MVC 模板,我无法弄清楚如何增加 FormsAuthentication 超时。它似乎总是使用 30 分钟。
我遵循了 this blog post 的 Scott Gu 的建议,但似乎并没有什么不同。有人有什么建议吗?
他的建议是在 web.config 文件中设置超时值:
<system.web>
<authentication mode="Forms">
<forms timeout="2880"/>
</authentication>
</system.web>
【问题讨论】:
标签: asp.net asp.net-mvc cookies forms-authentication