Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ASP.NET 表单身份验证在缓存中存储用户令牌/票证多长时间?
感谢关注。
默认值为 30 分钟,但您可以更改它。
看看这个:http ://www.asp.net/web-forms/tutorials/security/introduction/forms-authentication-configuration-and-advanced-topics-cs
默认到期时间为 30 分钟。您可以在 Web.config 中更改它:
<system.web> <authentication mode="Forms"> <forms timeout="60" /> </authentication> </system.web>
这将过期时间设置为 60 分钟。