Ejemplo n.º 1
0
 public IActionResult Logout(string returnUrl = "")
 {
     authHandler.DeleteLogActiveUser(HttpContext.Session.Id);
     HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
     HttpContext.Session.Clear();
     //return RedirectToAction("Index", new { returnUrl = returnUrl });
     return(RedirectToAction("Index", "Home", new { returnUrl = returnUrl }));
 }