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