0
イムMVC 3に新しいの種類と私はMVC 2フォーム認証CookieのMVC 3とMVC MVC 3サンプルプロジェクトに2
FormsAuthenticationTicket authTicket = new FormsAuthenticationTicket(1,Username,DateTime.Now,DateTime.Now.AddMinutes(10), RememberMe, Username);
string encTicket = FormsAuthentication.Encrypt(authTicket);
this.Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName, encTicket));
にサンプルプロジェクトでこれを発見し、この
FormsAuthentication.SetAuthCookie(model.UserName, model.RememberMe);
私の質問はこれと同じ効果がありますか?どのようにmvc 3のクッキーのライブを指定するのですか?事前に
がThxを
thx a @Daring –