If I create a cookie in Javascript document.cookie = \'unseen\' how do I delete it when I navigate away from this page? This is the only cookie I am creating on the
document.cookie = \'unseen\'
Run this:
document.cookie = 'unseen=; expires=Thu, 01-Jan-70 00:00:01 GMT;';
You're not deleting it, but telling the browser it's expired so it'll delete it.