Zugriff Auf Formular-Authentifizierung Ticket

Ich bin das speichern von Benutzer-details mit Formular-Authentifizierung cookie.

FormsAuthenticationTicket authTicket = new  FormsAuthenticationTicket(1, userName,DateTime.Now,DateTime.Now.AddMinutes(Timeout)false};

string encryptedTicket = FormsAuthentication.Encrypt(authTicket);

HttpCookie authCookie = new HttpCookie(
FormsAuthentication.FormsCookieName,encryptedTicket);    

HttpContext.Current.Response.Cookies.Add(authCookie);

Wie kann ich den cookie Hinzugefügt und Benutzer-Details (authTicket)?

InformationsquelleAutor BreakHead | 2010-07-28

Schreibe einen Kommentar