ocadotechnology / codeforlife-portal

The portal code for Code for Life
https://www.codeforlife.education/
Other
51 stars 79 forks source link

auto-logout countdown goes into negative numbers #2366

Open SKairinos opened 1 month ago

SKairinos commented 1 month ago

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 commented 2 weeks ago

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 commented 2 weeks ago

@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:

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!