From bd7bd6edc871d515c41d9c33f7593849f4d3dc40 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 7 Dec 2017 16:48:42 -0800 Subject: [PATCH] Fix session timeout conversion for Undertow Closes gh-11283 --- .../web/embedded/undertow/UndertowServletWebServerFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow/UndertowServletWebServerFactory.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow/UndertowServletWebServerFactory.java index 86b6862adf..7be903e488 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow/UndertowServletWebServerFactory.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/undertow/UndertowServletWebServerFactory.java @@ -292,7 +292,7 @@ public class UndertowServletWebServerFactory extends AbstractServletWebServerFac SessionManager sessionManager = manager.getDeployment().getSessionManager(); int sessionTimeout = (getSessionTimeout() == null || getSessionTimeout().isZero() || getSessionTimeout().isNegative() ? -1 - : (int) getSessionTimeout().toMinutes()); + : (int) getSessionTimeout().getSeconds()); sessionManager.setDefaultSessionTimeout(sessionTimeout); return manager; }