public virtual IActionResult Logout() { SharedData.ClearAll(); //standard logout _authenticationService.SignOut(); //raise logged out event var CustomerLogOut = new CustomerLoggedOutEvent(_WorkContextService.CurrentCustomer); _WorkContextService.CurrentCustomer.CustomerGuid = new Guid(); //delete current cookie value _httpContextAccessor.HttpContext.Response.Cookies.Delete(".MobileApheresis.Users"); return(RedirectToAction("Index", "Home")); }