Skip to content

Commit bd7bd6e

Browse files
committed
Fix session timeout conversion for Undertow
Closes gh-11283
1 parent c0e3ae9 commit bd7bd6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow/UndertowServletWebServerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ private DeploymentManager createDeploymentManager(
292292
SessionManager sessionManager = manager.getDeployment().getSessionManager();
293293
int sessionTimeout = (getSessionTimeout() == null || getSessionTimeout().isZero()
294294
|| getSessionTimeout().isNegative() ? -1
295-
: (int) getSessionTimeout().toMinutes());
295+
: (int) getSessionTimeout().getSeconds());
296296
sessionManager.setDefaultSessionTimeout(sessionTimeout);
297297
return manager;
298298
}

0 commit comments

Comments
 (0)