@WebMethod public ModelAndView logout() { ModelAndView mv = new ModelAndView(); ThreadSession.getHttpSession().removeAttribute("user"); ThreadSession.getHttpSession().removeAttribute(MakesiteConstant.Session_Auth_List); mv.redirect = ThreadSession.HttpServletRequest.get().getServletContext().getContextPath() + "/index.jsp"; String serverName = DataHelper.getServerName(ThreadSession.HttpServletRequest.get()); if (onlineUserCountMap.containsKey(serverName)) { onlineUserCountMap.put(serverName, onlineUserCountMap.get(serverName) - 1); } return mv; }