Advertisement
Guest User

Untitled

a guest
Dec 25th, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. AuthenticationManager.SignIn(new AuthenticationProperties() { IsPersistent = isPersistent }, identity);
  2. Session.Add("key", "value");
  3.  
  4. public ActionResult LogOff()
  5. {
  6. Session.Abandon();
  7. AuthenticationManager.SignOut();
  8. return RedirectToAction("Index", "Home");
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement