- // private void fullLogout() {
- // String username = CurrentUser.getUsername(subject);
- // try {
- // LoginContext loginContext = new LoginContext(
- // AuthConstants.LOGIN_CONTEXT_USER, subject);
- // loginContext.logout();
- // HttpServletRequest httpRequest = getRequest();
- // httpRequest.setAttribute(HttpContext.AUTHORIZATION, null);
- // HttpSession httpSession = httpRequest.getSession();
- // httpSession.setAttribute(HttpContext.AUTHORIZATION, null);
- // httpSession.setMaxInactiveInterval(1);
- // log.info("Logged out " + (username != null ? username : "")
- // + " (THREAD=" + Thread.currentThread().getId() + ")");
- // } catch (LoginException e) {
- // log.error("Error when logging out", e);
- // }
- // }
-