Use spring.session.timeout for Spring Session timeout
Fallback to server.servlet.session.timeout for backwards compatibility. Fixes gh-12906
This commit is contained in:
@@ -445,6 +445,7 @@ content into your application. Rather, pick only the properties that you need.
|
||||
|
||||
# SPRING SESSION ({sc-spring-boot-autoconfigure}/session/SessionProperties.{sc-ext}[SessionProperties])
|
||||
spring.session.store-type= # Session store type.
|
||||
spring.session.timeout= # Session timeout. If a duration suffix is not specified, seconds will be used.
|
||||
spring.session.servlet.filter-order=-2147483598 # Session repository filter order.
|
||||
spring.session.servlet.filter-dispatcher-types=async,error,request # Session repository filter dispatcher types.
|
||||
|
||||
|
||||
@@ -6014,7 +6014,8 @@ the name of the table for the JDBC store, as shown in the following example:
|
||||
spring.session.jdbc.table-name=SESSIONS
|
||||
----
|
||||
|
||||
|
||||
For setting the timeout of the session you can use the `spring.session.timeout` property.
|
||||
If that property is not set, the auto-configuration will fallback to the value of `server.servlet.session.timeout`.
|
||||
|
||||
[[boot-features-jmx]]
|
||||
== Monitoring and Management over JMX
|
||||
|
||||
Reference in New Issue
Block a user