public function setCookie($name, $value, $expire = 0, $path = null, $domain = null, $secure = false, $httpOnly = false)
    {
        return $this->addCookie((new Cookie())
            ->setName($name)
            ->setValue($value)
            ->setExpireTimestamp($expire)
            ->setPath($path)
            ->setDomain($domain)
            ->setSecure($secure)
            ->setHttpOnly($httpOnly));
    }