| | |
| | | |
| | | @Override |
| | | public void modifyHandshake(ServerEndpointConfig sec, HandshakeRequest request, HandshakeResponse response) { |
| | | HttpSession httpSession = (ShiroHttpSession) request.getHttpSession(); |
| | | sec.getUserProperties().put("httpSession",httpSession); |
| | | //HttpSession httpSession = (ShiroHttpSession) request.getHttpSession(); |
| | | HttpSession httpSession = (HttpSession)request.getHttpSession(); |
| | | if(httpSession!=null) { |
| | | sec.getUserProperties().put("httpSession", httpSession); |
| | | } |
| | | super.modifyHandshake(sec, request, response); |
| | | } |
| | | |