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



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to