public ActionResult Logout() { if (CurrentContext.IsLogged() == true) { CurrentContext.Destroy(); } return(RedirectToAction("Index", "Home")); }
public ActionResult Logout() { CurrentContext.Destroy(); return(RedirectToAction("Index", "Home")); }
public ActionResult LogOut() { CurrentContext.Destroy(); return(RedirectToAction("Login", "Account")); }
protected void btnLogout_Click(object sender, EventArgs e) { CurrentContext.Destroy(); Response.Redirect(Request.Url.AbsoluteUri); }