public function autoLogin($username) { $this->httpClient->loadCookies($username); if (!$this->httpClient->cookie('_auth')) { return false; } $this->login(); return true; }