Menu
Hey hows it going,
I’ve been trying for about atleast an hour now to get this cookie to delete.. I’ve tried several different methods, I’m not sure why it’s not working. Here’s the javascript code im using:
var today = new Date();
var expired = new Date(today.getTime() – 28 * 24 * 60
var dootie = document.cookie;
function deleteCookie(name){
document.cookie=name + “=null; expires=” + expired.toGMTString();
dootie = document.cookie;
alert(“cookie deleted.”);
}
when the page loads, this is in the body tag: onLoad=”deleteCookie(‘id’)”
Thanks for any ideas, I could really use them..