- ๐จ๐ฆCanada francismak
Thank you, the #26 patch is working. Looking at the original source, I think the issue maybe caused by:
From ajaxGetRemainingTime() in file src/Controller/AutologoutController.php:
if (isset($active) && $active === "false") { $response->addCommand(new ReplaceCommand('#timer', 0)); $response->addCommand(new SettingsCommand(['time' => 0])); return $response; }
Just wanted to understand the logic of this module.
Does anyone know why we are not updating the JS timer based on the $_SESSION/$_COOKIE,
but the line above will logout all browser tabs immediately, regardless of activities of other tabs.
Could this be the root cause of the issue we are having? - ๐ธ๐ฐSlovakia coaston
is is possible to implement that as a separate feature which can be enabled by radio button or so? = this behaviour without that patch is exactly what I need. everything needs to be lost in my case when the time is gone. So i dont want to aply this patch, hence donยงt want it to push it to stable release without ability to disable it.
- last update
about 1 year ago 15 pass, 7 fail - ๐ฎ๐ณIndia pankajsachdeva
I have applied patch #26 but I am still facing this issue. Is there any update on this?
- First commit to issue fork.
- last update
about 1 year ago 15 pass, 7 fail - ๐ธ๐ฎSlovenia DeaOm
Tested the code form MR (which is the same as in patch) and it works. Changed the code to use request stack instead of the global php session and cookie.
If I have multiple tabs open and on the last active one I am logged out (either by the pop up window or without it) I am also logged out from other tabs. If I have the pop up enabled and I trigger the "keep me logged in" via clicking the yes button, I am also not logged out from other tabs.@pankajsachdeva Can you provide more information on what is not working for you?
Also the code from here is basically the same as in the #3319047: Autologout does not consider activity while creating node and adding content on ckeditor of paragraph. And autlogout manager getRmaining time is having improper code to fetch logout_regardless_of_activity data โ as mentioned in the comment #26 ๐ Autologout triggered in background tab, no indication in other open tabs Fixed . It seems this one is a little bit more active, but for the maintinaers to give credit also on that issue, it needs to stay open.
This issue also confirms the issue with the setting of the logout time to one minute as it's not working (you are always logged out after 2 minutes). But that is handled in ๐ Undetected request prevents logout Needs review which will need to be updated once this is merged as there are some changes in the JS file.
- Open on Drupal.org โCore: 9.5.5 + Environment: PHP 7.4 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass - Status changed to RTBC
about 1 year ago 9:21am 22 September 2023 RTBC. The failing errors are handled by different issues, that do not relate to problems with this fix.
- Open on Drupal.org โCore: 9.5.5 + Environment: PHP 7.4 & MySQL 5.7last update
about 1 year ago Waiting for branch to pass -
boshtian โ
committed ae12b9b1 on 8.x-1.x authored by
gombi โ
Issue #3214958 by gombi, DeaOm, mkinnune, ari.saves, admirlju:...
-
boshtian โ
committed ae12b9b1 on 8.x-1.x authored by
gombi โ
- Status changed to Fixed
about 1 year ago 1:46pm 28 September 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
8 months ago 8:43pm 28 March 2024 - ๐บ๐ธUnited States recrit
This is still an issue when you have disabled "Enforce auto logout on admin pages" - meaning if a user is on an admin page, then they should not be logged out.
It seems like the new activity tracking (1.4+) does not properly consider the "refresh only" mode to keep you logged in.
See https://www.drupal.org/project/autologout/issues/3395581#comment-15525827 ๐ Autologout can log out out from other tabs/windows Needs work