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

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

            FormsAuthentication.SignOut();

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