PHP 5.4.31 Released

HttpRequest::setCookies

(PECL pecl_http >= 0.12.0)

HttpRequest::setCookiesSet cookies

Descrição

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

Set custom cookies.

Parâmetros

cookies

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

Valor Retornado

Retorna TRUE em caso de sucesso ou FALSE em caso de falha.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top