Re: [PHP] unset($_COOKIE['foo']) and $_COOKIE['foo'] = '' both don't do anything.

2004-07-28 Thread Matt M.
> 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. I am not sure about deleting a superglobal, but even if you do

RE: [PHP] unset($_COOKIE['foo']) and $_COOKIE['foo'] = '' both don't do anything.

2004-07-28 Thread Daevid Vincent
ilto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 12:03 PM > To: Daevid Vincent > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] unset($_COOKIE['foo']) and $_COOKIE['foo'] > = '' both don't do anything. > > > unset($_COOKIE['foo&#

Re: [PHP] unset($_COOKIE['foo']) and $_COOKIE['foo'] = '' both don't do anything.

2004-07-28 Thread Matt M.
> 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

[PHP] unset($_COOKIE['foo']) and $_COOKIE['foo'] = '' both don't do anything.

2004-07-28 Thread Daevid Vincent
Linux. PHP5. Maybe I'm doing something wrong, but I've tried both: unset($_COOKIE['foo']); And also $_COOKIE['foo'] = ''; And neither of them seem to do anything. I can still see the cookie and worse, the value if I do foreach ($_COOKIE as $key => $val) echo "$key = $val"; -- PHP General Ma