Solved
ASP will not delete cookie created with Javascript
Posted on 2008-10-01
Hi, I'm currently doing some maintenance on a site that uses JavaScript and plain ASP code (not Asp.Net), and I'm now very confused.
I am unable to delete a cookie for some reason. I've tried the method they say to use everywhere:
Response.Cookies("LineItems").Expires = Date() - 1
And it does nothing.
I'm wondering if the JavaScript cookie is the same as a regular cookie though, because I am using a cookie viewer (IECookiesView) and don't see the cookie there in any case. Yet I can see view the cookie using the JavaScript command:
alert(document.cookie);
The cookie is set in JavaScript with a command like this:
document.cookie = "LineItems=this is what i want my cookie to be";
I'm very confused. Is this not a cookie? Why does it not show up in IECookiesView and undeletable with asp?