I want the session to be cleared after 10 minutes, or if the webbrowser
is closed.
How do I accomplish this?
Now I have:
Code: Select all
php.ini:
; Lifetime in seconds of cookie or, if 0, until browser is restarted.
session.cookie_lifetime = 10If I closed the browser and opened a new one, the session was alive.
I've also tested with:
Code: Select all
session_cache_expire(10);
session_start();The session is alive after 10 minutes. But if i close the browser using this,
then it is destroyed.
So, how do I get "after 10 minutes OR closing webbrowser"?
Greetings