Re: Destroying cookies... not working

From: Date: Thu, 28 Apr 2011 00:52:58 +0000
Subject: Re: Destroying cookies... not working
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-312521@lists.php.net to get a copy of this message
The following did the trick... is there any reason I should not use it? $name="mysession"; setcookie($name); --Rick On Apr 27, 2011, at 7:16 PM, Rick Dwyer wrote:
Hello all. I have a logout page that should be destroying cookies when loaded... but it is not. setcookie("mycookie", "False", time() - 3600, "/"); However, I can still pull values stored in the cookie and I can still see the cookie in my browser's "Show Cookies" window. So I tried the following: setcookie('mycookie','',time()-3600); unset($_COOKIE['mycookie']); Still no luck. Any help with this is appreciated. --Rick --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#312521) next »