Undetected request prevents logout

Created on 5 September 2022, almost 2 years ago
Updated 28 September 2023, 9 months ago

Problem/Motivation

The user does not get logged out immediately after 60 seconds even if the settings are set accordingly. It is observed that they are logged out after around 120 seconds.
Observations:
- "autologout_ajax_set_last" route is triggered because of the 'autologout.refresh' ajax event. This is triggered because the autologout_prevent hook is invoked. But I was not able to debug why this autologout_prevent hook gets invoked without any user activity. No kernel request got logged when I checked using an event subscriber.

Steps to reproduce

Drupal Version: 8.9.20
PHP Version: 7.3.33
Autologout Module Version: 8.x-1.3
Autologout Settings: Please refer to the screenshot attached.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India bendale

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.5 + Environment: PHP 7.4 & MySQL 5.7
    last update 10 months ago
    16 pass, 7 fail
  • @deaom opened merge request.
  • Status changed to Needs review 10 months ago
  • 🇸🇮Slovenia DeaOm

    This issue is really strange as it seem it is only happening with the 60 setting, even if you enable the pop up to show. If you set it to anything grater like 80 or 120 it works as expected. Tested different possibilities and the one worked was the changing of the timer for resting the activity from one minute to a half of minute. Tested manually and the user gets logged out after one minute when that is set, also user gets normally logged out for grater times, like 2 minutes. I also added a test that demonstrated that, but the timeout there is se to 15 seconds, so the test does not take too much time to complete. Locally I also tested with the 60 setting in test and it's also working as expected.
    The test for migration should fail here because of the core issue with that 🌱 [META] Serialization issues in Migration tests Active .

  • First commit to issue fork.
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.5 + Environment: PHP 7.4 & MySQL 5.7
    last update 9 months ago
    16 pass, 7 fail
  • Status changed to RTBC 9 months ago
  • Tests pass locally they fail here because of the issue @DeaOm mentioned. Setting to RTBC.

  • Doc fix was done just to fix some problems with the GitLab merge error after a rebase. Rebase was correct, just some weird bug caused it just not work. So I don't see the need to switch to needs review, leaving it as RTBC.

  • Status changed to Fixed 9 months ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024