Remember me functionality in ASP.NET Form Authentication doesn't work
问题 I'm using ASP.NET forms authentication for logging users into a website we're developing. Part of the functionality is a "Remember me" checkbox which remembers the user for a month if they check it. The code for logging the user in is as follows: public static void Login(HttpResponse response, string username, bool rememberMeChecked) { FormsAuthentication.Initialize(); FormsAuthenticationTicket tkt = new FormsAuthenticationTicket(1, username, DateTime.Now, DateTime.Now.AddMinutes(30),