public ActionResult Logout() { //清除权限URL缓存 WebCache.RemovePermissionUrlCache(LoginUser); //清除导航树缓存 WebCache.RemoveTopMenuCache(LoginUser); WebCache.RemoveLeftMenuCache(LoginUser); Session["LoginUser"] = null; HttpCookie cookie = new HttpCookie("LoginUserID"); cookie.Value = ""; cookie.Expires = DateTime.Now.AddDays(-1); Response.Cookies.Add(cookie); //HttpCookie skin = new HttpCookie("SkinClass"); //skin.Value = ""; //skin.Expires = DateTime.Now.AddDays(-1); //Response.Cookies.Add(skin); return Redirect("/Admin/Login"); }