if (auditHelper != null) {
PicketLinkAuditEvent auditEvent = new PicketLinkAuditEvent(AuditLevel.INFO);
auditEvent.setWhoIsAuditing((String) requestOptions.get(GeneralConstants.CONTEXT_PATH));
auditEvent.setType(PicketLinkAuditEventType.INVALIDATE_HTTP_SESSION);
auditEvent.setHttpSessionID(httpSession.getId());
auditHelper.audit(auditEvent);
}
httpSession.invalidate(); // We are done with the logout interaction
} else {
// Put the participant in transit mode
server.stack().registerTransitParticipant(sessionID, nextParticipant);