且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

问题创造持久的身份验证Cookie:ASP.NET MVC

更新时间:2023-12-01 08:42:46

要创建你需要设置的过期属性:

To create a persistent cookie you need to set the Expires property:

if (authTicket.IsPersistent)
{
    authCookie.Expires = authTicket.Expiration;
}