protected function setCookiesFromRawHeader($rawFieldValue)
    {
        $cookiePairs = explode(';', $rawFieldValue);
        foreach ($cookiePairs as $cookiePair) {
            if (strpos($cookiePair, '=') === false) {
                continue;
            }
            list($name, $value) = explode('=', $cookiePair, 2);
            $trimmedName = trim($name);

            if ($trimmedName !== '' && preg_match(Cookie::PATTERN_TOKEN, $trimmedName) === 1) {
                $this->setCookie(new Cookie($trimmedName, urldecode(trim($value, "\t ;\""))));
            }
        }
    }
protected function setCookiesFromRawHeader($rawFieldValue)
    {
        $cookiePairs = explode(';', $rawFieldValue);
        foreach ($cookiePairs as $cookiePair) {
            if (strpos($cookiePair, '=') === false) {
                continue;
            }
            list($name, $value) = explode('=', $cookiePair, 2);
            $trimmedName = trim($name);

            if ($trimmedName !== '' && preg_match(Cookie::PATTERN_TOKEN, $trimmedName) === 1) {
                $this->setCookie(new Cookie($trimmedName, urldecode(trim($value, "\t ;\""))));
            }
        }
    }
protected function setCookiesFromRawHeader ( $ rawFieldValue ) { $ cookiePairs = explode ( ';' , $ rawFieldValue ) ; foreach ( $ cookiePairs as $ cookiePair ) { if ( strpos ( $ cookiePair , '=' ) === false ) { continue ; } list ( $ name , $ value ) = explode ( '=' , $ cookiePair , 2 ) ; $ trimmedName = trim ( $ name ) ; if ( $ trimmedName !== '' && preg_match ( Cookie :: PATTERN_TOKEN , $ trimmedName ) === 1 ) { $ this -> setCookie ( new Cookie ( $ trimmedName , urldecode ( trim ( $ value , "\t ;\"" ) ) ) ) ; } } }
Internally sets cookie objects based on the Cookie header field value.

@param string $rawFieldValue The value of a specification compliant Cookie header
@return void
@see set()
Internally sets cookie objects based on the Cookie header field value .