diff --git a/src/main/java/tomcat/request/session/redis/SessionManager.java b/src/main/java/tomcat/request/session/redis/SessionManager.java index 733662d..df8efda 100644 --- a/src/main/java/tomcat/request/session/redis/SessionManager.java +++ b/src/main/java/tomcat/request/session/redis/SessionManager.java @@ -347,7 +347,7 @@ public class SessionManager extends ManagerBase implements Lifecycle { * @return */ private int getSessionTimeout(Session session) { - int timeout = getContextIns().getSessionTimeout(); + int timeout = getContextIns().getSessionTimeout() * 60; int sessionTimeout = (session == null) ? 0 : session.getMaxInactiveInterval(); return (sessionTimeout < timeout) ? ((timeout < 1800) ? 1800 : timeout) : sessionTimeout; }