Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HttpSession session = event.getSession();
- ServletContext context = session.getServletContext();
- HashMap activeSessions = (HashMap) context.getAttribute("activeSessions");
- if (activeSessions == null) {
- activeSessions = new HashMap();
- }
- activeSessions.put(session.getId(), session);
- context.setAttribute("activeSessions", activeSessions);
- HashMap activeSessions = (HashMap) request.getSession().getServletContext().getAttribute("activeSessions");
- final HttpSession session = (HttpSession)activeSessions.get(jsessionid);
- request.getSession()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement