if (Request.Cookies["MyCookie"] != null) { HttpCookie myCookie = new HttpCookie("MyCookie"); myCookie.Expires = DateTime.Now.AddDays(-1d); Response.Cookies.Add(myCookie); }