code: public function isLoggedIn()
      {
          $cookieName = session_name();
          $cookie = $this->getSession()->getCookie($cookieName);
  
          if (null !== $cookie) {
              $this->getSession('goutte')->setCookie($cookieName, $cookie);
  
              return true;
          }
  
          return false;
      }
docs: Cookies are set when at least one page of the site has been visited. This
  action done in "beforeScenario" hook of TqContext.
  
  @see TqContext::beforeScenario()
  
  @return bool