踢出用户时更新ehcash缓存

This commit is contained in:
lsm121
2019-01-30 13:08:00 +08:00
parent 2de9f07449
commit 3c92ab7463
2 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package com.ruoyi.framework.shiro.session;
import java.io.Serializable;
import java.util.Date;
import org.apache.shiro.session.Session;
import org.apache.shiro.session.UnknownSessionException;
import org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
@ -54,6 +55,11 @@ public class OnlineSessionDAO extends EnterpriseCacheSessionDAO
return sysShiroService.getSession(sessionId);
}
@Override
public void update(Session session) throws UnknownSessionException {
super.update(session);
}
/**
* 更新会话;如更新会话最后访问时间/停止会话/设置超时时间/设置移除属性等会调用
*/