Zend_Http_Header_Exception_RuntimeException example

return 'Set-Cookie';
    }

    /** * @throws Zend_Http_Header_Exception_RuntimeException * * @return string */
    public function getFieldValue()
    {
        if ($this->getName() == '') {
            throw new Zend_Http_Header_Exception_RuntimeException('A cookie name is required to generate a field value for this cookie');
        }

        $value = $this->getValue();
        if (strpos($value, '"') !== false) {
            $value = '"' . urlencode(str_replace('"', '', $value)) . '"';
        } else {
            $value = urlencode($value);
        }
        $fieldValue = $this->getName() . '=' . $value;

        $version = $this->getVersion();
        
Home | Imprint | This part of the site doesn't use cookies.