By mjohnq3 on
Is it possible to force a log-off from the user's account when he/she exits the browser? Many browser-based applications support this. I think this would be good from a security standpoint.
If so, how do I configure this?
Thanks in advance.
Comments
session cookie lifetime
Your settings.php file should have a line like this:
ini_set('session.cookie_lifetime', 2000000);
PHP docs say:
session.cookie_lifetime integer
session.cookie_lifetime specifies the lifetime of the cookie in seconds which is sent to the browser. The value 0 means "until the browser is closed."
Thanks
Thank you. Setting that value to 0 now logs the user out.
Cookie Lifetime set to zero
but I'm not getting logged out when I close a browser window. Drupal 4.6 and very clean install.
And ideas??? Thanks.
Clear Cookies
Did you sort this, I had same problem but cleared cookies in Explorer and it works.
Exactly right
I simply hadn't cleared IE's cookies. All is well.
Thank
It work for me too, remember to clear the cookies.
Truyenle