How do you set a cookie to expire when the user closes their browser?
I figured it out:
if you set a cookie without an expiration time, it automatically is erased when the browser is closed.
Just as an example:
$PHPSESSID = time(); setcookie ("PHPSESSID", "$PHPSESSID");