Last 5.3 release ever available: PHP 5.3.29 - 5.3 now EOL

HttpRequest::setCookies

(PECL pecl_http >= 0.12.0)

HttpRequest::setCookiesSet cookies

Description

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

Set custom cookies.

Parameters

cookies

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

Return Values

Returns TRUE on success or FALSE on failure.

add a note add a note

User Contributed Notes

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