(PECL pecl_http >= 0.12.0)
HttpRequest::setCookies — Set cookies
$cookies
] )Set custom cookies.
cookies
an associative array as parameter containing cookie name/value pairs; if empty or omitted, all previously set cookies will be unset
Zwraca TRUE
w przypadku powodzenia, FALSE
w
przypadku błędu.