Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto-logout countdown goes into negative numbers #2366

Open
SKairinos opened this issue Oct 15, 2024 · 2 comments
Open

auto-logout countdown goes into negative numbers #2366

SKairinos opened this issue Oct 15, 2024 · 2 comments
Labels

Comments

@SKairinos
Copy link
Collaborator

Describe the bug
The auto-logout popup which counts down goes into negative numbers and doesn't log you out.

To Reproduce
Not sure what conditions this trigerred.

Expected behaviour
Popup should close and log you out.

Screenshots
Image

@sebp999
Copy link
Contributor

sebp999 commented Nov 8, 2024

I tried it with Chrome and Firefox on Mac. Couldn't reproduce negative numbers. The countdown works and the popup goes after the timeout, but also noticed that it doesn't log user out, just reloads page.

@faucomte97
Copy link
Contributor

faucomte97 commented Nov 11, 2024

@sebp999 It seems to happen to me when I have the site open, and I then focus on another tab. The popup will show up eventually. but I assume because I am no longer on that tab, the script execution fails, or something like that. Not 100% sure.

That being said, it is supposed to log the user out though. The way it was designed was:

  • Django has a session duration setting X implemented after which the session is terminated (user is logged out) if there has been no activity
  • The popup is designed to show up at X - 2 minutes.
  • Then, at the end of the countdown, reloading is enough to show that the session was terminated automatically by Django (a reload is necessary as Django doesn't auto-reload on session end).
  • I think there's some middleware involved in this process too in the deploy directory.

Would you be able to check:

  1. if my point about the other tab is correct and
  2. why, in your case, the reload didn't log the user out

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

3 participants