CASC-65
added an explicit call to remove an entry from the backing storage before adding it just in case it already exists under another key
This commit is contained in:
parent
e8f438db55
commit
415d118b5c
|
|
@ -92,6 +92,11 @@ public final class SingleSignOutFilter extends AbstractConfigurationFilter {
|
|||
log.debug("Storing session identifier for " + session.getId());
|
||||
}
|
||||
if (CommonUtils.isNotBlank(artifact)) {
|
||||
try {
|
||||
SESSION_MAPPING_STORAGE.removeBySessionById(session.getId());
|
||||
} catch (final Exception e) {
|
||||
// ignore if the session is already marked as invalid. Nothing we can do!
|
||||
}
|
||||
SESSION_MAPPING_STORAGE.addSessionById(artifact, session);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue