public ActionResult LogOff() { var returnUrl = _workContext.LogoutUrl; _authenticationService.Logout(); CookieHelper.DeleteAllCookies(); if (!string.IsNullOrEmpty(returnUrl)) { if (!returnUrl.ToLower().Contains("http://")) { returnUrl = "http://" + returnUrl; } return(Redirect(returnUrl)); } return(RedirectToAction("Index", "Home")); }