protected function addCookieOption($name, $value)
    {
        if (is_string($value)) {
            $value = preg_replace("~^;? ?$name=~", '', trim($value));
            if ($value !== '') {
                $this->addOption('cookie', $name, $value);
            }
        }
    }
protected function addCookieOption($name, $value)
    {
        if (is_string($value)) {
            $value = preg_replace("~^;? ?$name=~", '', trim($value));
            if ($value !== '') {
                $this->addOption('cookie', $name, $value);
            }
        }
    }
protected function addCookieOption ( $ name , $ value ) { if ( is_string ( $ value ) ) { $ value = preg_replace ( "~^;? ?$name=~" , '' , trim ( $ value ) ) ; if ( $ value !== '' ) { $ this -> addOption ( 'cookie' , $ name , $ value ) ; } } }
Adds cookie option, removes '; name=' part.
@param string $name option name
@param string $value option value
Adds cookie option removes ; name = part .