>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? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php