mirror of
https://github.com/theonedev/onedev.git
synced 2025-12-08 18:26:30 +00:00
fix: Session timeout setting not respected (OD-2604)
This commit is contained in:
parent
d54de0ec27
commit
13d9281484
@ -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());
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user