// First check if cookie exists if (Request.Cookies["MyCookieName"] != null) { // Set its expiration time somewhere in the past Response.Cookies["MyCookieName"].Expires = DateTime.Now.AddDays(-1); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)