mirror of https://gitee.com/y_project/RuoYi.git
session配置永不过期,不删除在线会话信息
parent
34445af291
commit
784cc3a10f
|
@ -195,7 +195,6 @@ public class FileUploadUtils
|
|||
throw new InvalidExtensionException(allowedExtension, extension, fileName);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -103,6 +103,11 @@ public class OnlineWebSessionManager extends DefaultWebSessionManager
|
|||
int invalidCount = 0;
|
||||
|
||||
int timeout = (int) this.getGlobalSessionTimeout();
|
||||
if (timeout < 0)
|
||||
{
|
||||
// 永不过期不进行处理
|
||||
return;
|
||||
}
|
||||
Date expiredDate = DateUtils.addMilliseconds(new Date(), 0 - timeout);
|
||||
ISysUserOnlineService userOnlineService = SpringUtils.getBean(ISysUserOnlineService.class);
|
||||
List<SysUserOnline> userOnlineList = userOnlineService.selectOnlineByExpired(expiredDate);
|
||||
|
|
Loading…
Reference in New Issue