Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By rentex on
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
Solution: Automated logout module
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?
You can do this with PHP configuration parameters
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
Thanks, exactly what I was looking for!
Thank you!
That was exactly what I was looking for:-)