Add support for providing a custom SessionTimeout bean#49883
Conversation
|
@bartsopers Looking at the implementations, why can't you set the relevant property in the |
|
@snicoll our use case is that our on-premise customers can configure session management (either Spring Session with redis or servlet container backed sessions) through spring profiles. This would mean that, depending on their configuration and their deployment type (we offer both jar and war artifacts), they would either need to use the server.servlet.session.timeout or the spring.session.timeout property. This is confusing for our customers, so we want to introduce a single property to set the session timeout. |
|
@bartsopers fair enough, we can consider this an added value of the modularization. |
This commit allows a user-defined SessionTimeout bean to take control over the auto-configuration of the timeout. See spring-projectsgh-49883 Signed-off-by: Bart Sopers <15631208+bartsopers@users.noreply.github.com>
c3612e7 to
b103d2b
Compare
This change allows for customization of Spring Session session timeout in Spring Boot Session.
Closes #49882