Destroy Cookies

Discussion in 'Scripts, 3rd Party Apps, and Programming' started by Shadow121, Nov 21, 2006.

  1. Shadow121

    Shadow121 Member

    I have a website that uses cookies and i need to know how to destroy them o.o This is a volnurability to: javascript: alert(document.cookie) and another code in which i wont post just in case.
  2. aking47

    aking47 New Member

    With PHP:
    <?php
    // set the expiration date to one hour ago
    setcookie ("TestCookie", "", time() - 3600);
    ?>

Share This Page