public ActionResult Logout() { if (Request.Cookies["LoginCookie"] != null) { if (Request.Cookies["UName"] != null) { Request.Cookies["UName"].Expires = DateTime.Now.AddDays(-1); Request.Cookies["UPwd"].Expires = DateTime.Now.AddDays(-1); } MemcachedHelper.DeleteMemcachedData(Request.Cookies["LoginCookie"].Value); } return(Redirect("/Login/Index")); }