Beispiel #1
0
        private async Task <ActionResult> LogUserOut()
        {
            Session.Abandon();
            _cookieHelper.ClearAllCookies();
            AuthenticationManager.SignOut();

            return(RedirectToAction("Login"));
        }
Beispiel #2
0
        private ActionResult LogUserOut()
        {
            Session.Abandon();
            _cookieHelper.ClearAllCookies();

            FormsAuthentication.SignOut();

            return(RedirectToAction("Login", "Account"));
        }