【问题标题】:What is unit of Forms Authentication timeout in Asp.net?Asp.net 中表单身份验证超时的单位是什么?
【发布时间】:2017-04-16 17:15:15
【问题描述】:

是几分钟吗? 它在“2880”中,但是这个超时时间太短了。好像没几分钟...

   <authentication mode="Forms">
      <forms loginUrl="~/Account/Login" timeout="2880" />
   </authentication>

【问题讨论】:

标签: c# asp.net timeout


【解决方案1】:
<forms loginUrl="~/Account/Login" timeout="2880" />

FormAuthentication 超时以 分钟 为单位。 2880 表示 48 小时。

如果您没有明确设置,默认为 30 分钟。

【讨论】:

  • 当超时(cookie auth)过期时 ASP.NET (MVC) 中的任何事件?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-09-28
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多