/** * Save cookies to the client's session. * * @param \GuzzleHttp\Cookie\SetCookie $cookie * * @return bool */ public function setCookie(SetCookie $cookie) { $successful = parent::setCookie($cookie); if ($successful) { $this->cookie->make($cookie->getName(), $cookie); return true; } return false; }
/** * Update the session with the given cookie. * * @param string $id * * @return void */ protected function updateSession($id) { $this->cookie->make($this->getName(), $id); }