Forum Moderators: open
var mydate = new Date();
mydate.setTime(mydate.getTime() - 1);
document.cookie = "username=; expires=" + mydate.toGMTString();
My workaround has been that if I will be altering the cookie with Javascript, I make sure I set it in Javascript.
On my site I'll need a link/button that can do one of two things. 1- Clear all cookies or 2- Clear all cookies under a domain that ISNT mine. Number 1 would sound more realistic but I think you alluded to that it can't work.
If any of this really is possible here is the cookie info-
Site- www.paradiseaffiliates.com
Cookie Name- btag
Anything that could clear that cookie when someone just clicks a simple button on my site would be GREAT. I'm worried some people can't follow simple 'delete cookies' instructions.
Please keep in mind I know ZERO about JavaScript.