JS newbie here, is there a way to clear out the contents of document.cookie. I want the transient cookies blown away as if the user closed their browser, not just resetting their values back to empty strings.
I would expect something like these to work but they dont:
document.cookie = "";
document.cookie.clear();
docuemnt.cookie.reset();
document.cookie.delete();
document.cookie.length=0;
I've looked around quite a bit and don't see any mention of being able to do it. Is this possible?
thx in advance
I would expect something like these to work but they dont:
document.cookie = "";
document.cookie.clear();
docuemnt.cookie.reset();
document.cookie.delete();
document.cookie.length=0;
I've looked around quite a bit and don't see any mention of being able to do it. Is this possible?
thx in advance