Install

Works with Drupal: ^10.3 || ^11 || ^12

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 52.39 KB
MD5: fa1df136aa182890483a138710600074
SHA-1: b9bdde7cd005b7a48cddd06931531523c10aab5a
SHA-256: 7b428de017e8606a2d2dca56d845f2c443868e3d4a3bb6c81b9b63a4c28e76e3
Download zip 88.25 KB
MD5: 4d7b7ffce256c8aed7fec885663731b5
SHA-1: 3b44ab2e9ce0b24620583ffa4c979df3b7beb452
SHA-256: fdd9e6833a529a5849df38eb72b33c254df48950f424a2fc5e97eee669a6ce61

Release notes

Summary

This release adds Drupal 12 compatibility and fixes four bugs in the logout flow. It raises the minimum supported core version to Drupal 10.3.

Requirements changed

  • Drupal 10.3 or later is now required. Drupal 9 and Drupal 10.0 to 10.2 are no longer supported. Sites on those versions should stay on 2.0.3.
  • Drupal 12 is supported. The module works with both JS Cookie 1.x and 2.x. Neither has a Drupal 12 compatible release yet, so Composer installs on Drupal 12 need a workaround such as mglaman/composer-drupal-lenient until JS Cookie publishes one.

Bug fixes

  • #3633640: On sites that use a language prefix in the URL (for example /ja), the inactivity callbacks returned "Access denied" once the timeout had passed, and the page was never redirected to the login page.
  • #3031424: When the logout request failed in the browser, the user stayed on the page even though the session had ended. This affected sites where a single sign-on module redirects the logout to an identity provider. The page now redirects whenever the logout request
    fails.
  • #3542453: With "Use alternate logout method" enabled, a user whose session had already ended (in another tab, or at the identity provider) got "Access denied" instead of the logout redirect.
  • #3454219: A user or role with a timeout of 0 could still be logged out. A timeout of 0 now always means "never log out", including when "Use highest role timeout value" is enabled and the user has other roles with a timeout.

Tasks

  • #3632719: Drupal 12 compatibility.
  • #2910106: The README now has accessibility guidance for WCAG 2.2.1 (Timing Adjustable), including which settings can take a site out of conformance.
  • #3587442: Corrected "less then" to "less than" in three timeout validation messages. Translations of these strings need to be updated.
  • #3584038: Test suite clean-up.

Notes for developers

  • The module's services are now autowired. Code that alters the autologout.manager or autologout_event_subscriber service definitions by argument position will need updating. Service IDs, hooks and class names are unchanged.
  • The alternate logout route now uses its own access check (_autologout_alt_logout_access) in place of _user_is_logged_in and _csrf_token. Logged-in users still need a valid token.
  • After a server-side logout the module no longer calls drupal_static_reset(); it resets the active theme only.
Created by: japerry
Created on: 19 Nov 2026 at 23:52 UTC
Last updated: 19 Nov 2026 at 23:53 UTC
Bug fixes
New features

Other releases