J
JimFoye
ticket is an instance of FormsAuthenticationTicket;
HttpCookie cookie = new HttpCookie(FormsAuthentication.FormsCookieName,
FormsAuthentication.Encrypt(ticket));
if (ticket.IsPersistent)
cookie.Expires = DateTime.Now.AddYears(1);
Response.Cookies.Add(cookie);
I added the 2 lines to set cookie expiration after seeing that in an article
written by an MS employee. Alas, it doesn't help.
Any ideas?
HttpCookie cookie = new HttpCookie(FormsAuthentication.FormsCookieName,
FormsAuthentication.Encrypt(ticket));
if (ticket.IsPersistent)
cookie.Expires = DateTime.Now.AddYears(1);
Response.Cookies.Add(cookie);
I added the 2 lines to set cookie expiration after seeing that in an article
written by an MS employee. Alas, it doesn't help.
Any ideas?