I have a PHP site with a login. Once the person is logged in (using standard file based sessions), the person can click a log out page that will log him out.
Problem is - visitors generally don't do that. They simply close the web browser.
However, the next person can come along, open the browser, and be right in the first person's login area.
Seems like this would be a giant security hole :) in shared user environments (offices, internet cafes, etc)
I need to know how to 'log out' the person by closing the window. I know that the
'session.cookie_lifetime'
variable is set to 0.
There has to be some solution. Any help would be greatly appreciated.