alexxiyang / shiro-redis

shiro only provide the support of ehcache and concurrentHashMap. Here is an implement of redis cache can be used by shiro. Hope it will help you!
MIT License
1.17k stars 444 forks source link

目前发现复制代码中的RedisSessionDao代码自己重写,加入日志代码,发现通过同一个sessionId从ThreadLocal当中获取的session不一致 #130

Closed yarcl closed 4 years ago

yarcl commented 4 years ago

有两张图片,一张是重写的大佬的代码,加了日志,一张是打印的日志。

yarcl commented 4 years ago

1 这个是加日志改写的dai'ma代码 2 这个是打印的日志 @alexxiyang 请大佬帮忙看一下,谢谢

yarcl commented 4 years ago

这块应该是应用了ThreadLocal的一个bug,大家看到可以升级一下版本,目前我用的版本是3.1.0的版本。或者自己修改源码解决这个问题

rick-2023 commented 4 years ago

看日志像是往session不断追加属性吧