Deleting cookies won't work
| From: | Andrew Wood | Date: | Thu, 29 Jan 2004 21:05:56 +0000 |
| Subject: | Deleting cookies won't work | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-176258@lists.php.net to get a copy of this message | ||
Can anyone fathom out why I can't get the setcookie function to delete a cookie?
I'm calling it with the same arguments as I used to set it originally, but with a null string value & an expiry time in the past but the cookie persistently remains in the browser.
This how I set it:
setcookie ("hhubpassword", md5($newpassword) , time() + 1209600, "/xchange/");
And this is how I'm trying to delete it:
setcookie ("hhubpassword", "", time() -3600, "/xchange/");
Thanks
Andrew