How do I force users logged into a Drupal-portal to be logged out every 24 hours (or 24 hours after they haved logged in)?

Any module that handles this allready? Or what cookie-setting in htaccess with what value would give expected result?

Greatfull for any tips!

Comments

rentex’s picture

Was a bit fast posting that, here is a module that does exactly what I desired: http://drupal.org/project/autologout

But still, which values and where in settings.php can this be done in a very simple way?

robertDouglass’s picture

In either php.ini or in the conf array in settings.php you can set session.gc_maxlifetime to the number of seconds that a session is supposed to last: http://de2.php.net/session

- Robert Douglass

-----
My Drupal book: Building Online Communities with Drupal, phpBB and WordPress

rentex’s picture

Thank you!

That was exactly what I was looking for:-)