The Most Active and Friendliest
Affiliate Marketing Community Online!

“Adavice”/  “CPA

Php session

C

clau

Guest
I am using session in some sites of mine and my problem is how can i close the session if somebody does not log uot only closes the window or tab?

Thanks,
Claudiu
 
Why close the session?

The session will close client-side when the user closes the window, if you must though, you can either set session timeout or session_write_close() at the end of your code
 
Why close the session?
You never leaved a forum or any site where you neede to log in without logging out?
If you did than you noticed that when you enter back you are already logged in without asking you for password an so.

This is why I want to close the session even is you exit the site without logging out.
 
MI
Back