protected boolean doesSessionIdInCookieStoreExistAndMatchLatestSessionId(){
  logger.debug("Check to see if session id in cookie store matches the session id used to get the latest CSRF token");
  String sessionId=getAuthenticationSessionIdFromCookieStore();
  return sessionId != null && sessionId.equals(latestSessionIdForLatestCsrfToken);
}

protected boolean doesSessionIdInCookieStoreExistAndMatchLatestSessionId ( ) { logger . debug ( "Check to see if session id in cookie store matches the session id used to get the latest CSRF token" ) ; String sessionId = getAuthenticationSessionIdFromCookieStore ( ) ; return sessionId != null && sessionId . equals ( latestSessionIdForLatestCsrfToken ) ; }
gets the authenticated session id . if it is not found , an authentication flow will be started so that a proper session id is available
