¡@

Home 

c# Programming Glossary: authticket

Cookie Confusion with FormsAuthentication.SetAuthCookie() Method

http://stackoverflow.com/questions/4939533/cookie-confusion-with-formsauthentication-setauthcookie-method

write your own cookie like this FormsAuthenticationTicket authTicket new FormsAuthenticationTicket 1 version userName user name DateTime.Now.. cause I want to store my groups in an encrypted cookie Dim authTicket As System.Web.Security.FormsAuthenticationTicket _ New System.Web.Security.FormsAuthenticationTicket.. As String System.Web.Security.FormsAuthentication.Encrypt authTicket Dim authCookie As HttpCookie New HttpCookie _ System.Web.Security.FormsAuthentication.FormsCookieName..

When `PostAuthenticateRequest` gets execute?

http://stackoverflow.com/questions/5947278/when-postauthenticaterequest-gets-execute

if authCookie null FormsAuthenticationTicket authTicket FormsAuthentication.Decrypt authCookie.Value var identity new.. authCookie.Value var identity new GenericIdentity authTicket.Name Forms var principal new GenericPrincipal identity new.. if authCookie null var authTicket FormsAuthentication.Decrypt authCookie.Value var identity new..