Warning! You are currently reading the documentation for Requests 1.x.
It is recommended to upgrade to Requests 2.x at your earliest convenience.
Upgrading to Requests 2.x is fairly straight-forward.
A full list of the changes can be found in the Changelog.
Visit the documentation for Requests_Cookie
in Requests 2.x.
Class Requests_Cookie
Cookie storage object
public
|
#
__construct( string $name, string $value, array|
Create a new cookie object |
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
protected
mixed
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public static
|
|
public static
array
|
#
parse_from_headers(
Parse all Set-Cookie headers from request headers |
public static
array
|
#
parseFromHeaders(
Parse all Set-Cookie headers from request headers |
public
string
|
$name
Cookie name. |
|
public
string
|
$value
Cookie value. |
|
public
|
$attributes
Cookie attributes |
#
array()
|
public
array
|
$flags
Cookie flags |
#
array()
|
public
integer
|
$reference_time
Reference time for relative calculations |
#
0
|