Page 1 of 1
how 2 end session automatically when browser is closed
Posted: Tue Dec 16, 2008 12:58 am
by anujphp
hello
i need a help to log out session when browser is closed ...can anyone provide me the code
THANK YOU IN ADVANCE
Re: how 2 end session automatically when browser is closed
Posted: Tue Dec 16, 2008 1:51 am
by cavemaneca
if you are using any $_SESSION['variable'] it should be erased anyway when the browser is closed. If you use cookies to very session then maybe that's why it stays logged in. Also, set up a script to write into the cookie how long until it expires.
Re: how 2 end session automatically when browser is closed
Posted: Sat Dec 20, 2008 2:50 am
by anujphp
THANKS YOU
I am using session...