Re: [PHP3] deleting cookies.

From: Date: Wed, 14 Jun 2000 22:48:34 +0000
Subject: Re: [PHP3] deleting cookies.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-1884@lists.php.net to get a copy of this message
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

« previous php.general (#1884) next »