Here is the code I use that just refuses to remove the cookies
Expand|Select|Wrap|Line Numbers
- Dim aCookieCustomerID As HttpCookie = Request.Cookies("CustomerID")
- If (Not aCookieCustomerID Is Nothing) Then
- Request.Cookies.Remove("CustomerID")
- aCookieCustomerID.Expires = DateTime.Now.AddYears(-30)
- Response.Cookies.Add(aCookieCustomerID)
- End If