
Originally Posted by
kalaloom
Set a cookie that will auto-delete when visitor leaves the page

Originally Posted by
Da Manual
If set to 0, or omitted, the cookie will expire at the end of the session (when the browser closes).
So there's that 
Another thing is that if you don't specify a value for a cookie it will actually tell the browser to delete the cookie. Why there is no mention of this in Da Manual is beyond me. I'm pretty sure it used to be there, but now it's not anymore?!
Anyhow, the code you want to use is
PHP Code:
setcookie('redirected', true, 0, '/');
Bookmarks