Пример #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);
 }