Nope thats not they way....
If you don't specify a expire date it will live for ever or until you delete

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();

"Alexander Ross" <[EMAIL PROTECTED]> wrote in message
> How can I set a cookie which expires when the borwser is closed??  How can
> delete a cookie via PHP?
> Thanks

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to