You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/administration/configuration/config-file-reference.md
+40-2Lines changed: 40 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -235,10 +235,48 @@ used. Specified from [jaas-loginmodule.conf](#jaas-loginmodule-conf).
235
235
236
236
## Session timeout
237
237
238
-
See [rundeck-config.properties > Server Settings](#server-settings)
238
+
Session Timeout Behavior:
239
239
240
-
Or set `server.servlet.session.timeout` via [System Properties Configuration](/administration/configuration/system-properties.md).
240
+
-**Activity-based timeout**: Under normal operations, sessions time out based on inactivity using the value defined in `server.servlet.session.timeout` (default: 3600 seconds).
241
+
-**Forced re-authentication**: When `rundeck.userSessionDuration.forceReauthentication` is enabled, sessions will expire after the duration defined in `rundeck.userSessionDuration.maxMinutes`, regardless of user activity.
242
+
-**Default values**: When `rundeck.userSessionDuration.forceReauthentication` is enabled and `rundeck.userSessionDuration.maxMinutes` isn't specified, the default `userSessionDuration.maxMinutes` is 60 minutes.
241
243
244
+
:::tip
245
+
Beware that using the forced re-authentication feature may result in data loss if jobs are not saved when the session is invalidated.
246
+
:::
247
+
248
+
### Inactivity Timeout
249
+
250
+
To configure the inactivity timeout use `server.servlet.session.timeout`. The default is 3600 seconds.
251
+
252
+
Example configurations:
253
+
254
+
```properties
255
+
# Standard activity-based timeout (2 hours)
256
+
server.servlet.session.timeout=7200
257
+
```
258
+
259
+
Also see [rundeck-config.properties > Server Settings](#server-settings)
It is also possible to force re-authentication regardless of activity levels.
264
+
265
+
-`rundeck.userSessionDuration.maxMinutes`: Maximum duration in minutes for user sessions. Default: 60 minutes.
266
+
-`rundeck.userSessionDuration.forceReauthentication`: Default: `false`. When set to `true`, enforces session timeout regardless of user activity. When set to `false` (default), no forced re-authentication occurs and sessions only time out based on inactivity.
267
+
268
+
All of these can be set via [System Properties Configuration](/administration/configuration/system-properties.md) or in `rundeck-config.properties`.
269
+
270
+
Example configurations:
271
+
272
+
```properties
273
+
# Force reauthentication after 8 hours regardless of activity
0 commit comments