Closed (fixed)
Project:
Automated Logout
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
13 Nov 2025 at 12:19 UTC
Updated:
3 Apr 2026 at 10:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #4
herved commentedMR created
This probably deserves a mention in the release note that the dependency on js_cookie module was removed and sites can uninstall it themselves if unused.
Comment #5
the_g_bomb commentedAdded a query
Comment #6
timohuismanI’ve tested MR!83 with version 2.0.1 on drupal/core 11.2.x and can confirm that it works as expected. After disabling and removing the js_cookie dependency from my project, the logout functionality continues to work correctly.
One remaining concern is the sameSite attribute. In the js-cookie library, the default value for sameSite is not set, so explicitly setting it to lax would change the current behavior. See: https://github.com/js-cookie/js-cookie?tab=readme-ov-file#samesite
Because of this potential behavior change, I’m leaving my review status at Needs review for now. Without the sameSite consideration, this would be RTBC from my side.
The patch includes a snapshot of the current state of the MR and can be safely applied using composer-patches.
Comment #7
the_g_bomb commentedHappy not to bikeshed this over the sameSite value. Lax is the default for most browsers in any case.
Comment #8
anybodyAny plans to merge this? Looking at the MANY maintainers, it might be a good time to clean up inactive ones, also for security reasons?
Comment #9
the_g_bomb commentedI have outlined the path to a new version in #3390554: [META] Roadmap to new release before releasing a new version.
While I could just start merging, I would prefer #3339695: Use Drupal.dialog call instead of jQuery dialog to go in first and clear the way for all the other tickets outlined in the ticket above.
Comment #11
the_g_bomb commentedMerged
Comment #15
mikemccaffreyFor the love of god do not remove module dependencies in minor versions. We have deployed the security update to our test environment and now Drupal is going on and on about the missing the js_cookie module that is still enabled, and now we need to add it as a composer dependency just so we can cleanly disable the module in live on deploy.
Comment #16
ericgsmith commentedAt the very least mention the removal in the release notes https://www.drupal.org/project/autologout/releases/2.0.2
Comment #17
handkerchiefSame here, the workaround:
Comment #18
the_g_bomb commentedApologies, in hindsight, this should have been a major verison release.
Comment #19
joaopauloscho commentedI’m wondering why the hook update to install js_cookie is still present. I’m updating the module from 1.4.0 to 1.7.0 and encountered an error when running database updates.
Comment #20
the_g_bomb commentedThis #3580316: autologout_update_9201 fails with "Unable to install modules js_cookie" after js_cookie dependency was removed was created to address the hook update removal.