0

ASP.NET 表单身份验证在缓存中存储用户令牌/票证多长时间?

感谢关注。

4

3 回答 3

0

默认值为 30 分钟,但您可以更改它。

于 2013-09-05T11:58:18.410 回答
0

看看这个:http ://www.asp.net/web-forms/tutorials/security/introduction/forms-authentication-configuration-and-advanced-topics-cs

默认值为 30 分钟,但您可以更改它。

于 2013-09-05T11:59:16.393 回答
0

默认到期时间为 30 分钟。您可以在 Web.config 中更改它:

<system.web>
  <authentication mode="Forms">
    <forms timeout="60" />
  </authentication>
</system.web>

这将过期时间设置为 60 分钟。

于 2013-09-05T12:00:43.570 回答