Re: unset($_COOKIE['foo']) and $_COOKIE['foo'] = '' both don't do anything.
| From: | Matt M. | Date: | Wed, 28 Jul 2004 19:03:21 +0000 |
| Subject: | Re: unset($_COOKIE['foo']) and $_COOKIE['foo'] = '' both don't do anything. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-192114@lists.php.net to get a copy of this message | ||
> unset($_COOKIE['foo']);
>
> And also
>
> $_COOKIE['foo'] = '';
Are you trying to delete the cookie on the client side?
if so try:
setcookie ('foo', '', time() - 3600);
http://us2.php.net/setcookie