I'm digging around trying to figure this one out and maybe someone can help. I'm starting a session with session_start() and everything works fine. The users log on to the site with a username / pass stored in mysql and I session_register their $user_number (from mysql) to keep track of who is who.
If they click the "log off" button then I session_unregister("user_number") and they are logged out.
The problem is that if they don't log out this way, then their $user_number session variable is saved because their PHPSESSID cookie is saved. And they are still logged on. And they probably think they are not (I would).
The cookie is persistent no matter what. Shut down the browser, etc. I can't seem to kill it. I have tried setcookie("PHPSESSID") and so many other kludges that I can't remember them all.
help?