Re: [PHP] Can't delete cookies
Are you sure that the cookie is not unset? You might have an old cookie with / as its path that you see now. Andrew Wood wrote: 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Can't delete cookies
Please, reply to the whole list, you will have a better chance you will get the right answer. Andrew Wood wrote: No because even if I manually delete all the cookies in the browser from my domain, then reload the page to set them again, then run the PHP code to delete them they're still there. The interesting thing is, the expiry time isn't being altered at all Another thing that comes to my mind: do you have the computer clocks (both client and server) correct? and timezones? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Can't delete cookies
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php