Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AuthenticationManager.SignIn(new AuthenticationProperties() { IsPersistent = isPersistent }, identity);
- Session.Add("key", "value");
- public ActionResult LogOff()
- {
- Session.Abandon();
- AuthenticationManager.SignOut();
- return RedirectToAction("Index", "Home");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement