【发布时间】:2011-12-02 16:09:39
【问题描述】:
我正在创建一些“记住我”功能作为登录的一部分。
当我在登录过程中使用以下内容创建持久性 cookie 时:
FormsAuthentication.SetAuthCookie("someusername", true);
我的 Web.Config 如下所示:
<authentication mode="Forms">
<forms loginUrl="~/sign-in" timeout="2880" />
</authentication>
在要求用户再次提供登录详细信息之前,cookie 的有效期是多久? 另外,设置持久性cookie时是否有/默认使用的时间长度是多少?
【问题讨论】:
标签: asp.net cookies forms-authentication remember-me