im kind of new on mvc 3 and i just spot this on a sample project in mvc 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));
and this on a mvc 3 sample project
FormsAuthentication.SetAuthCookie(model.UserName, model.RememberMe);
My question is does this have the same effect ?? how do i specify the live of the cookie on mvc 3 ??
Thx in advance