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:
Scott Battaglia 2008-08-06 13:07:03 +00:00
parent e8f438db55
commit 415d118b5c
1 changed files with 5 additions and 0 deletions

View File

@ -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);
}
}