AndyPike.Castlecasts.Website.Controllers.SessionsController.Logout C# (CSharp) Method

Logout() public method

public Logout ( ) : void
return void
        public void Logout()
        {
            CurrentUser.Token = null;
            CurrentUser.Save();

            Session["token"] = null;

            Flash["success"] = "You have successfully logged out.";
            RedirectToAction("New");
        }
SessionsController