HttpRequest::setCookies
(PECL pecl_http >= 0.12.0)
HttpRequest::setCookies — Set cookies
Beschreibung
public
bool HttpRequest::setCookies
([ array
$cookies
] )Set custom cookies.
Parameter-Liste
-
cookies -
an associative array as parameter containing cookie name/value pairs; if empty or omitted, all previously set cookies will be unset
Rückgabewerte
Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.