I have the following javascript function which creates a cookie
Expand|Select|Wrap|Line Numbers
- function setCookie(c_name,value,expiredays)
- {
- var exdate=new Date();
- exdate.setDate(exdate.getDate()+expiredays);
- document.cookie=c_name+ "=" +escape(value) +((expiredays==null) ? "" : ";expires="
- +exdate.toGMTString());
- }
setCookie ("A2O_list", ' 0 ', 365)
from within in javascript it puts a cookie on my machine as accepted.
However, now i want to destroy the cookie. I can do this with another javascript function BUT for variuos rreasons i need to do it in ASP.
Now, when i call the standard asp routine to destroy the cookie...
Response.Cookies("A2O_list").Expires=Date - 1
OR
Response.Cookies("A2O_list") = ""
the cookie is NOT destroyed !
Can someone pls explain why ?
Thanks in advance