http
PHP Manual

HttpRequest::setCookies

(PECL pecl_http:0.12.0-1.5.5)

HttpRequest::setCookies — Set cookies

Descripción

public bool HttpRequest::setCookies ([ array $cookies ] )

Set custom cookies.

Lista de parámetros

cookies

an associative array as parameter containing cookie name/value pairs; if empty or omitted, all previously set cookies will be unset

Valores retornados

Devuelve TRUE si todo se llevó a cabo correctamente, FALSE en caso de fallo.


http
PHP Manual