diff --git a/model/sessions-infinispan/src/main/java/org/keycloak/models/sessions/infinispan/InfinispanUserSessionProvider.java b/model/sessions-infinispan/src/main/java/org/keycloak/models/sessions/infinispan/InfinispanUserSessionProvider.java index 2275a9864e..71bac9e6e7 100755 --- a/model/sessions-infinispan/src/main/java/org/keycloak/models/sessions/infinispan/InfinispanUserSessionProvider.java +++ b/model/sessions-infinispan/src/main/java/org/keycloak/models/sessions/infinispan/InfinispanUserSessionProvider.java @@ -236,7 +236,7 @@ public class InfinispanUserSessionProvider implements UserSessionProvider { .execute(); for (String id : sessions.keySet()) { - removeUserSession(realm, id); + removeUserSession(realm, getUserSession(realm, id)); } } @@ -252,7 +252,7 @@ public class InfinispanUserSessionProvider implements UserSessionProvider { .execute(); for (String id : map.keySet()) { - removeUserSession(realm, id); + removeUserSession(realm, getUserSession(realm, id)); } map = new MapReduceTask(sessionCache)