Jump to content

[SOLVED] how to log out session automatically when browser is closed


anujphp

Recommended Posts

ah if your login doesnt use cookies then your login should logout as sessions are destroyed when the browser is closed.

 

if it uses cookies simply set the time on the on the cookie to a past itme

That not true, Not all session's destroy after the browser is closed,

 

Example.

 

If you got the life off the session set in php.ini for a long time then it is passable that the session is still set.

 

you need to set this in the php.ini to the time you want the session's to die.

 

session.gc_maxlifetime=set this is seconds to die for all sessions in the php.ini  

 

It defiantly possible having session.gc_maxlifetime set to long cheek.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.