This module automatically logs out inactive users after a set period. It allows for different timeout settings based on user roles and includes JavaScript to keep users logged in while active.
This module provides a site administrator the ability to log users out after a specified time of inactivity.
It is highly customisable and includes role-specific "site policies" to enforce logout.
Try it out on Simplytest.me
Features
- Different timeouts based on role
- Disabling of timeouts based on role
- Permission for users to set their own timeout
- Includes some JS mechanisms to keep users logged in even if multiple tabs are open or if the user is working on a form for a long period of time.
- Includes developer hooks to allow users to remain logged in, depending on your own project-specific requirements
- Optional integration with Javascript Timer
Upgrading to 3.x
Please update to the latest 2.0.x (2.0.3) or 8.x-1.x (8.x-1.8) releases, which are the same.
The update hooks in these releases will remove the need for js_cookie. The composer requirement for this is removed in the 3.x version.
Module Versions
The 2.0.x and 8.x-1.x versions are the same. Most users should upgrade to version 2.x. Only users who have a downstream dependency on autologout 8.x-1.x should use the older release.
The 7.x-5.x branch is discontinued.
Only use the 7.x-4.x branch releases for Drupal 7.
Recommended modules
- Session Limit - For limiting the maximum number of logged in sessions a user can have.
- Password Policy - For enforcing password length, complexity and renewal.
More information
Checkout this blog post from Lullabot Module Monday: Auto Logout
Ask your assistant about Automated Logout
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
3 tracked projects depend on this one
- Guardr Core 74 sites
- SSO Connector Autologout 4 sites
- CiviCRM Automated Logout Bridge
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 3.0.0-alpha1 | Pre-release | 11 | Oct 22, 2026 | ||
| 3.x-dev | Dev | 9–11 | May 17, 2026 | ||
| 8.x-1.8 | Stable | 9–11 | May 17, 2026 | ||
| 2.0.3 | Stable | 9–11 | May 17, 2026 | ||
| 8.x-1.7 | Stable | 9–11 | Mar 18, 2026 | ||
| 2.0.2 | Stable | 9–11 | Mar 18, 2026 | ||
| 8.x-1.6 | Stable | 9–11 | Nov 22, 2024 | ||
| 2.0.1 | Stable | 9–11 | Nov 22, 2024 | ||
| 2.x-dev | Dev | 9–11 | May 22, 2024 | ||
| 2.0.0 | Stable | 9–11 | May 22, 2024 |