Пример #1
0
        public IActionResult Logout()
        {
            string userId;

            Request.Cookies.TryGetValue(CookieConfig.oaUserId, out userId);

            redis.DeleteUserLoginInfo(userId);
            Response.Cookies.Delete(CookieConfig.oaUserId);
            Response.Cookies.Delete(CookieConfig.oaToken);
            return(RedirectToAction("index", "Account"));
        }