public function getCookieValue($host, $path, $name)
    {
        $longest_path = '';
        foreach ($this->cookies as $cookie) {
            if ($this->isMatch($cookie, $host, $path, $name)) {
                if (strlen($cookie->getPath()) > strlen($longest_path)) {
                    $value        = $cookie->getValue();
                    $longest_path = $cookie->getPath();
                }
            }
        }

        return (isset($value) ? $value : false);
    }