Put HttpServletRequest#logout() in separate try/catch block.

This commit is contained in:
Marvin S. Addison 2013-10-28 16:07:28 -04:00
parent 82c95aaf19
commit 5b1bd87e7a
1 changed files with 4 additions and 2 deletions

View File

@ -175,11 +175,13 @@ public final class SingleSignOutHandler {
try {
session.invalidate();
} catch (final IllegalStateException e) {
logger.debug("Error invalidating session.", e);
}
try {
request.logout();
} catch (final ServletException e) {
logger.debug("Error performing request.logout.");
} catch (final IllegalStateException e) {
logger.debug("Error invalidating session.", e);
}
}
}