code: @Override
      public String getJwtSsoTokenFromCookies(HttpServletRequest req, String baseName) {
  
          StringBuffer tokenStr = new StringBuffer();
          String cookieName = baseName;
          for (int i = 1; i <= 99; i++) {
              if (i > 1) {
                  cookieName = baseName + (i < 10 ? "0" : "") + i; //name02... name99
              }
              String cookieValue = getCookieValue(req, cookieName);
              if (cookieValue == null) {
                  break;
              }
              if (cookieValue.length() > 0) {
                  tokenStr.append(cookieValue);
              }
          }
          return tokenStr.length() > 0 ? tokenStr.toString() : null;
      }
docs: The token can be split across multiple cookies if it is over 3900 chars.
  Look for subsequent cookies and concatenate them in that case.
  The counterpart for this method is SSOCookieHelperImpl.addJwtSsoCookiesToResponse.
  
  @param req
  @return the token String or null if nothing found.