View Single Post
Old 07-09-2009, 09:18 PM   #1 (permalink)
Mike
The Wanderer
 
Mike's Avatar
 
Join Date: Jun 2009
Posts: 11
Thanks: 0
Mike is on a distinguished road
Default Destroy Session when close browser

Hi guys, i've been sratching my head finding a way to solve this problem, i have a user login using PHP session, when a user close the browser without login out the session stil remains, so when the user opens the browser again he won't have to log in, cause the session exists yet.

I need to destroy the session when the user closes the browser,
my php.ini has a session.cookie_lifetime = 0 configuration, but the session seems to never expire.

does anyone know a way to do that?
Mike is offline  
Reply With Quote