你的位置:首页 > ASP.net教程

[ASP.net教程]asp.net mvc清空指定cookies


HttpCookie hc = Request.Cookies["user"];
                hc.Expires = DateTime.Now.AddDays(-1);
                Response.AppendCookie(hc);