deleting a cookie

    Date: 07/04/06 (Javascript Community)    Keywords: google

    I am going nuts. I have google and tried a dozen solutions.


    All I want to do is delete a cookie set by
    onclick="document.cookie='dest=my_account;path=/;';"

    Here is the JS I am using

    From body onload="deleteCookie('dest');


    function deleteCookie(name){
    var today = new Date();
    today.setTime (today.getTime() - 28 * 24 * 60 * 60 * 1000); // less 28 days
    var dootie = document.cookie;

    var secure = "0";
    document.cookie=name + "=null; expires=" + today.toGMTString();
    path=" + path + "; domain=" + domain;

    dootie = document.cookie;

    Source: http://community.livejournal.com/javascript/105262.html

« onBlur, close window || Cambrian House Wants You! »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home