2009-09-28 8 views

Répondre

3

Vérifiez la FormsAuthenticationTicket sur MSDN

FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1, 
     "userName", 
     DateTime.Now, 
     your_time_out_goes_here, // value of time out property 
     false, // Value of IsPersistent property 
     String.Empty, 
     FormsAuthentication.FormsCookiePath); 
Questions connexes