I thought I would take another stab at explaining my problem. Using sessions to keep track of authenticated users, if a user leaves my site without explicity logging out then they are not logged out. They could shut their computer down and start it back up and they will still be logged in.
If they go to the log out page and log out, then ok. I session_unregister("valid_user") and they are logged out. I tried session_destroy() too (and that also works) but getting users logged out from the logout page isn't my problem. If they don't go to the logout page, then they are still in, and that's my problem.
This is supposed to be a secure site so it's a big problem for me, given users are not always going to go logout. I think it has to do with the PHPSESSID cookie persistency, but not sure. I tried getting rid of the cookie with setcookie("PHPSESSID") but no luck. My PHPSESSID cookie stays 1a15205610ad2d44dfb59777fa32a7d7 no matter what.
Any thoughts? help?
Thanks!