摘要:
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket( 1, "ticketName", DateTime.Now, DateTime.Now.AddMinutes(60), false, "{UserNAme:'sanmao'}" ); string token = FormsAuthentication.Encrypt(ticket); HttpCookie userCookie = new HttpCookie(FormsAuthentication.For 阅读全文