RE: [PHP] unset($_COOKIE['foo']) and $_COOKIE['foo'] = '' both don't do anything.
| From: | Daevid Vincent | Date: | Wed, 28 Jul 2004 19:16:53 +0000 |
| Subject: | RE: [PHP] 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-192117@lists.php.net to get a copy of this message | ||
No. I'm trying to delete it from PHP memory, but keep the cookie on their
client in the cookie.txt file or wherever it's stored.
The idea is for added security. I just don't want traces of it around after
the initial login.
> -----Original Message-----
> From: Matt M. [mailto:h.dudeness@gmail.com]
> Sent: Wednesday, July 28, 2004 12:03 PM
> To: Daevid Vincent
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] unset($_COOKIE['foo']) and $_COOKIE['foo']
> = '' both don't do anything.
>
> > 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>