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

"logged in" status in user list not updated on session expiration #5591

Closed
solth opened this issue Mar 10, 2023 · 0 comments · Fixed by #5592
Closed

"logged in" status in user list not updated on session expiration #5591

solth opened this issue Mar 10, 2023 · 0 comments · Fixed by #5592
Labels
bug user management user, role and permission related topics

Comments

@solth
Copy link
Member

solth commented Mar 10, 2023

Describe the bug
The user list does not reliably display the "logged in" status of users (with the green check mark) because the underlying Spring session is only updated when the user actively logs out of the system, not when the configured session timeout is reached. Even if a user is effectively logged out after his session expires, he still appears as "logged in" on the user page/user list. Thus, users who haven't been logged into the system for weeks or months still appear as "logged in" in the user list in case they didn't log out manually on their last visit.

To Reproduce
Steps to reproduce the behavior:

  1. (optional) lower session-timeout value in web.xml to 1 and restart Tomcat to make (testing) life easier
  2. Log into Kitodo with one account in one browser
  3. Log into Kitodo with another account in a different browser
  4. Observe user list in first browser
  5. Refresh page (just in first browser) from time to time to refresh session and avoid timeout with the corresponding user
  6. Once session timeout is reached for the second user, he will be logged out (resulting in page reloads in second browser to be redirected to login page)
  7. In the first browser, though, the second user will still appear with the green check mark signaling he is logged in, even after reloading the page/list

Expected behavior
The user list should reliably reflect whether a user is logged in or not and the green check mark should disappear - on page reload - for users that have been logged out due to session expiration.

Screenshots
Bildschirm­foto 2023-03-10 um 22 52 07

Release
3.6.0-SNAPSHOT

Additional context
This issue is related to #3169 and #4129 but describes a separate problem.

@solth solth added bug user management user, role and permission related topics labels Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug user management user, role and permission related topics
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant