Exemple #1
0
 private void cleanUpSession(HttpServletRequest request) {
   try {
     WebSessionService.getInstance().saveSession(request);
   } catch (SessionException e) {
     jgLog.error("ERROR SETTING SESSION ATTRIBUTES");
   }
 }
Exemple #2
0
 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;
 }