当shiro执行clearCachedAuthenticationInfo时,会出现以下问题:
protected void clearCachedAuthenticationInfo(PrincipalCollection principals) {
if (!CollectionUtils.isEmpty(principals)) {
// return null
Cache<Object, AuthenticationInfo> cache = this.getAvailableAuthenticationCache();
if (cache != null) {
Object key = this.getAuthenticationCacheKey(principals);
cache.remove(key);
}
}
}
导致会话无法清除,寻求解决方案