1. 清除微信cookies:
微信浏览器内访问http://debugx5.qq.com,滑只底部清除cookies
2.服务器遍历cookies
Cookie[] cookies = this.getRequest().getCookies(); //遍历所有的cookie,然后根据cookie的key值来获取value值 if (cookies!=null) { String JSESSIONID=""; for (Cookie cookie : cookies) { if (cookie.getName().equals("JSESSIONID")) { JSESSIONID = cookie.getValue(); System.out.println(JSESSIONID); } } }