Re: cookies

From: Date: Thu, 11 Jul 2002 09:46:35 +0000
Subject: Re: cookies
Groups: php.general 
Request: Send a blank email to php-general+get-107083@lists.php.net to get a copy of this message
>Nope thats not they way.... >If you don't specify a expire date it will live for ever or until you delete >it. > >The only way is to set it with an expiry date and then it will delete >it'self when the browser closes. >Check this by running a file on the same domain with phpinfo(); No. If you send no expiration date, it expires when the browsers are all closed. Read the Cookie spec. Not that MS actually got all of the Cookie spec correct, but they got that part right. To erase a cookie, just do: setcookie('cookie', ''); -- Like Music? http://l-i-e.com/artists.htm Off-Topic: What is the moral equivalent of 'cat' in Windows?

« previous php.general (#107083) next »