Forms Authentication cookie seems to stop working
问题 I want to have functionality on my application that lets a user check off that they wish to stay logged indefinitely (arbitrarily setting the cookie expiration at 3 months from NOW). The code I have for dealing with this is private static HttpCookie GetFormsAuthenticationCookie(string userNameResponse, bool persistCookie) { var cookie = FormsAuthentication.GetAuthCookie(userNameResponse, persistCookie); if (persistCookie) cookie.Expires = DateTime.Now.AddMonths(3); return cookie; } private