コード例 #1
0
        public async Task <IActionResult> Logout()
        {
            RedisConnector.DeleteKeys(User.Identity.Name + "lstProduct");

            await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);

            return(Redirect("/"));
        }