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