Fix session timeout conversion for Undertow

Closes gh-11283
pull/11294/head
Stephane Nicoll 7 years ago
parent c0e3ae9042
commit bd7bd6edc8

@ -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;
}

Loading…
Cancel
Save