Inheritance: IAuthenticator
示例#1
0
 public ActionResult LogOut()
 {
     //FormsAuthentication.SignOut();
     IAuthenticator authenticator = new CookieAuthenticator();
     authenticator.SignOut();
     Response.Clear();
     return Json(true);
 }
示例#2
0
 private void AuthUser(UserModel user)
 {
     IAuthenticator authenticator = new CookieAuthenticator();
     authenticator.SetCookie(user.UserName, true);
 }