From 05c9b7adc941e0ac5da2372c0f79ca958bbf50b6 Mon Sep 17 00:00:00 2001 From: Keerthana Date: Sat, 28 Apr 2018 20:46:55 +0530 Subject: [PATCH] session expire timeout issue fixes.. --- src/main/java/tomcat/request/session/redis/SessionManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }