Multiple clicks to extend session needed

Created on 14 August 2024, 3 months ago
Updated 22 August 2024, 3 months ago

Vanilla Drupal 10.3.2 site with only Autologout v2.0.0 installed (DDEV setup, php v8.1).

Problem/Motivation

When a user reaches the logout time limit and the Logout dialog appears, the dialog does not go away immediately when clicking "Yes" to stay logged in. After multiple clicks the window goes away.

Steps to reproduce

  1. Install Autologout on a clean Drupal 10 site.
  2. Set timeout limit to 65 seconds.
  3. Set Custom confirm options for "Yes" and "No".
  4. Leave other settings to their default values.

Here the background is all greyed out - because of multiple calls to the function that activates the popup?

Notice network tab - ajax_set_last is called 3 times before the popup goes away:

Proposed resolution

I am not sure what is causing the error, but I noticed that the latest MR of this issue https://www.drupal.org/project/autologout/issues/3339695 Use Drupal.dialog call instead of jQuery dialog RTBC deals with another strategy for dialogs, so this might fix it.

This bug seems very similar, but might not be exactly the same https://www.drupal.org/project/autologout/issues/3390069 🐛 Multiple dialogs open Postponed .

Remaining tasks

See if above MR fixes the problem, else identify the exact issue.

🐛 Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇩🇰Denmark benjamin_dk

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

Comments & Activities

Production build 0.71.5 2024