Skip to content

Commit

Permalink
[docs] Document new maxSessions config option (#151268)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Watson authored Feb 16, 2023
1 parent aff771c commit e7ebb0c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/settings/security-settings.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ Sets the interval at which {kib} tries to remove expired and invalid sessions fr
+
TIP: Use a string of `<count>[ms\|s\|m\|h\|d\|w\|M\|Y]` (e.g. '20m', '24h', '7d', '1w').

xpack.security.session.сoncurrentSessions.maxSessions::
Set the maximum number of sessions each user is allowed to have active at any given time.
By default, no limit is applied.
If set, the value of this option should be an integer between `1` and `1000`.
When the limit is exceeded, the oldest session is automatically invalidated.

[[security-encrypted-saved-objects-settings]]
==== Encrypted saved objects settings

Expand Down
15 changes: 15 additions & 0 deletions docs/user/security/session-management.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,18 @@ You can configure the interval at which {kib} tries to remove expired and invali
xpack.security.session.cleanupInterval: "1d"
--------------------------------------------------------------------------------
--

[[session-max-sessions]]
==== Maximum number of concurrent sessions
By default, there is no limit to the maximum number of concurrent sessions each user can have in {kib}.
To add a limit, use the `xpack.security.session.сoncurrentSessions.maxSessions` configuration option.
If set, the value of this option should be an integer between `1` and `1000`.
When the limit is exceeded, the oldest session is automatically invalidated.

--
[source,yaml]
--------------------------------------------------------------------------------
xpack.security.session.сoncurrentSessions:
maxSessions: 3
--------------------------------------------------------------------------------
--

0 comments on commit e7ebb0c

Please sign in to comment.