Example #1
0
 public ActionResult LogOut()
 {
     Xsession.RemoveAdmin();
     Xsession.RemoveMember();
     Xsession.url = null;
     Xcookie.Instance.RemoveMember();
     Xcookie.Instance.RemoveAdmin();
     return(RedirectToAction("Login", "Account"));
 }
 public ActionResult LogOut()
 {
     Xsession.RemoveAdmin();
     Xsession.RemoveMember();
     HttpContext.Session.Remove("Name");
     Xcookie.Instance.RemoveMember();
     Xcookie.Instance.RemoveAdmin();
     return(RedirectToAction("Index", "Home"));
 }