Can I add a script so when I close a window, session automatically expires?
Any script or hint or link related to this will be much appreciated.
Thank you.
Can I add a script so when I close a window, session automatically expires?
Any script or hint or link related to this will be much appreciated.
Thank you.
Yes, here it is:
(you don’t have to use any code, PHP does what you ask by default, unless session.cookie_lifetime is set to something else than 0 in php.ini)