Is there a way to delete a cookie when someone logs off? There must be. What would the syntax be? Anyone?
Set the cookie with an expiration date in the past and it will be deleted when the page is refreshed.
Set a cookie without any expiration date if you want a session cookie (this is deleted when the browser window is closed)
http://www.php.net/manual/en/function.setcookie.php - more on cookies - including delete examples.