From 0628d738c443206bb3dbf30ec08e1d2ad4aaf29e Mon Sep 17 00:00:00 2001 From: dinggang <2498628697@qq.com> Date: Thu, 28 Jul 2022 17:30:13 +0800 Subject: [PATCH] bugfix --- .../java/io/renren/modules/security/config/ShiroConfig.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/renren-admin/src/main/java/io/renren/modules/security/config/ShiroConfig.java b/renren-admin/src/main/java/io/renren/modules/security/config/ShiroConfig.java index 2ef8f6ad..a41f72f3 100644 --- a/renren-admin/src/main/java/io/renren/modules/security/config/ShiroConfig.java +++ b/renren-admin/src/main/java/io/renren/modules/security/config/ShiroConfig.java @@ -42,7 +42,9 @@ public class ShiroConfig { @Bean public DefaultWebSessionManager sessionManager() { - return new ShiroSessionManager(); + ShiroSessionManager sessionManager = new ShiroSessionManager(); + sessionManager.setGlobalSessionTimeout(-1000L); + return sessionManager; } @Bean("securityManager")