fix: Session timeout setting not respected (OD-2604)

This commit is contained in:
Robin Shen 2025-11-17 20:03:13 +08:00
parent d54de0ec27
commit 13d9281484

View File

@ -36,8 +36,6 @@ import io.onedev.server.web.websocket.WebSocketService;
public class ProductServletConfigurator implements ServletConfigurator {
private static final int SESSION_TIMEOUT = 300;
private final CorsFilter corsFilter;
private final ShiroFilter shiroFilter;
@ -83,8 +81,6 @@ public class ProductServletConfigurator implements ServletConfigurator {
public void configure(ServletContextHandler context) {
context.setContextPath("/");
context.getSessionHandler().setMaxInactiveInterval(SESSION_TIMEOUT);
context.setInitParameter(EnvironmentLoader.ENVIRONMENT_CLASS_PARAM, DefaultWebEnvironment.class.getName());
context.addEventListener(new EnvironmentLoaderListener());