Esempio n. 1
0
        public async Task <IActionResult> Logout()
        {
            var myCookies = Request.Cookies.Keys;

            foreach (var cookie in myCookies)
            {
                Response.Cookies.Delete(cookie);
            }
            await Identities.LogoutAsync(Actor.Me.Id);

            return(RedirectToAction("Login"));
        }