public function set(array $product_ids)
    {
        $lifespan = $this->getCookieLifespan();
        $result = $this->request->setCookie('product_compare', implode('|', (array) $product_ids), $lifespan);

        gplcart_static_clear();
        return $result;
    }