/** {@inheritDoc} */ @Override public void destroySession(@Nonnull @NotEmpty final String sessionId, final boolean unbind) throws SessionException { ComponentSupport.ifNotInitializedThrowUninitializedComponentException(this); // Note that this can leave entries in the secondary SPSession records, but those // will eventually expire outright, or can be cleaned up if the index is searched. if (unbind) { cookieManager.unsetCookie(cookieName); } try { storageService.deleteContext(sessionId); log.debug("Destroyed session {}", sessionId); } catch (final IOException e) { log.error("Exception while destroying session {}", sessionId, e); throw new SessionException("Exception while destroying session", e); } }