public ActionResult LogOut() { FormsAuthentication.SignOut(); UserTicket.clearUserSession(); // clear authentication cookie HttpCookie cookie1 = new HttpCookie(FormsAuthentication.FormsCookieName, ""); cookie1.Expires = DateTime.Now.AddYears(-1); Response.Cookies.Add(cookie1); return(Redirect("~/Home/Login")); }