code: public String getSessionId(HttpServletRequest request) {
  		String sessionId = request.getParameter(ACCESSTOKEN);
  		if(isBlank(sessionId)){
  			sessionId = request.getHeader(ACCESSTOKEN);
  		}
  		if(isBlank(sessionId)){
  			Cookie[] cookies = request.getCookies();
  			if(cookies == null)return null;
  			for (Cookie cookie : cookies) {
  				if(sessionIdName.equals(cookie.getName())){
  					sessionId = cookie.getValue();
  					break;
  				}
  			}
  		}
  		return sessionId;
  	}
docs: 获取授权Id （accessToken or  sessionId）
  @param request
  @return