Re: Re: [PHP3] deleting cookies.
| From: | Zak Greant | Date: | Wed, 14 Jun 2000 22:53:43 +0000 |
| Subject: | Re: Re: [PHP3] deleting cookies. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1885@lists.php.net to get a copy of this message | ||
Hello Nicholas,
You are deleting the cookies properly. The problem is that setting a Location header interferes with setting or deleting cookies. Try using an alternate to location like the Redirect header.
HTH,
Zak
At 07:48 PM 6/14/00 -0300, J. Andrew MacDonald wrote:
Couldnt you just set the cookie to an empty string? SetCookie("current_client", ""); Andrew Nicholas Burke wrote: This isn't very complex but its pissing me off. setcookie("current_client"); setcookie("current_order"); header("Location: /admin/admin.php"); trying to delete current_client and current order cookies and then redirecting back to the main page. In the php manual it says all you need to do to delete cookies is call setcookie with only the name argument. Simple enough i thought... but low and behold its just can't be that easy. It never erases the cookie and i'm back to square one, if anyone has any ideas, or knows something i'm completely missing i'd love to hear it. Thanks. Nicholas Burke Purplemedia, "You're damn right!" Shaft -- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe@lists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe@lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.netZak Greant Creative Director Nucleus Information Service Inc. "I am rather like a mosquito in a nudist camp: I know what I ought to do, but I don't know where to begin." - Stephen Bayne