// // POST: /Account/LogOff public ActionResult LogOff() { AuthenticationBL sMgr = new AuthenticationBL(); string Msg = ""; var httpCookie = Request.Cookies["ELTSession"]; sMgr.CheckSession(3, Session["login_name"].ToString(), Convert.ToInt32(Session["elt_account_number"]), "", httpCookie.Value, "", out Msg); WebSecurity.Logout(); authBL.PerformDBLogOutFromLegacyASPNET(); Session.Abandon(); return(RedirectToAction("Index", "Home")); }