protected function updateCookie() { $this->app->setCookie(self::COOKIE_NAME, json_encode($this->cookie), time() + self::COOKIE_LIFESPAN); }