Return to Snippet

Revision: 14611
at June 7, 2009 17:34 by abwaters


Initial Code
function deleteCookie(name) {
    var aCookie = getCookie(name);
    if (aCookie) {
        document.cookie = aCookie + '; expires=Thu, 01-Jan-70 00:00:01 GMT';
        return name;
    }
}

Initial URL
http://www.arachna.com/edu/tutorials/mini/cookies/javascript.html

Initial Description

                                

Initial Title
Deleting a Cookie in Javascript

Initial Tags

                                

Initial Language
JavaScript