private void cleanUpSession(HttpServletRequest request) { try { WebSessionService.getInstance().saveSession(request); } catch (SessionException e) { jgLog.error("ERROR SETTING SESSION ATTRIBUTES"); } }
private boolean initSession(HttpServletRequest request, HttpServletResponse response) throws ServletException { try { WebSessionService.getInstance().getSession(request, response); } catch (SessionException e) { jgLog.error("ERROR INITIALIZING SESSION: " + e.getMessage()); throw new ServletException(e.getMessage()); } catch (CookieException e) { return false; } return true; }