org.apache.shiro.session.UnknownSessionException: There is no session with id [xxxx]

springboot整合shiro缓存时报错
org.apache.shiro.session.UnknownSessionException: There is no session with id [xxxx]

解决:
1.更改cookie名称为 token
2.设置cookie过期时间与session过期时间一致
3.退出登录时清空cookie
org.apache.shiro.session.UnknownSessionException: There is no session with id [xxxx]_第1张图片
org.apache.shiro.session.UnknownSessionException: There is no session with id [xxxx]_第2张图片
org.apache.shiro.session.UnknownSessionException: There is no session with id [xxxx]_第3张图片

你可能感兴趣的:(JAVA,java)