コード例 #1
0
 private FormsAuthenticationTicket ForceAuthentication(string UserName)
 {
     //try to authenticate user avoiding user to inert login credentials again
     IAuthenticationBL blAuth = new AuthenticationBL();
     FormsAuthenticationTicket ticket = blAuth.SetTicket(UserName);
     blAuth.Dispose();
     return ticket;
 }