Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Per client session idle time capped by realm level client idle timeout #35825

@ahus1

Description

@ahus1

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

core

Describe the bug

When specifying a per-client session idle time together with persistent sessions, the client sessions are removed once the timeout on the realm level is reached.

There is currently no indication for the user that this is the case.

This was first reported by @enastevska in #23687 (comment)

Version

main & 26.0.7

Regression

  • The issue is a regression

Expected behavior

  1. Make it safe to use: Either allow a client to override the realm's client idle time with a longer value (up to the session time), or show an or keep the current behavior. Any invalid values should should show errors on save, possibly also when opening the UI to show misconfigurations in existing values.

  2. Docs that align with the behavior, including the hints in the UI for the specific fields

Actual behavior

UI accepts the values without any warnings or errors. Client sessions are removed once the realm's client session timeout is reached.

How to Reproduce?

The following code doesn't look at individual clients:

if (realm.getClientSessionIdleTimeout() > 0) {
expiredClient = Time.currentTime() - realm.getClientSessionIdleTimeout() - SessionTimeoutHelper.PERIODIC_CLEANER_IDLE_TIMEOUT_WINDOW_SECONDS;
}

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions