-
-
Save MykolaPod/e00c27a05d2de9ca8aaacb72aa68f71e to your computer and use it in GitHub Desktop.
Securing ASP.NET MVC application 13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HttpPost] | |
[ValidateAntiForgeryToken] | |
public ActionResult LogOff() | |
{ | |
PingObject value; | |
UsersPingResult.TryRemove(Session.SessionID, out value); | |
AuthenticationManager.SignOut(DefaultAuthenticationTypes.ApplicationCookie); | |
return RedirectToAction("Index", "Home"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment