A class representing a list of cookies with specific attributes.
None.
Create a new cookie list.
void http\Cookie::__construct([mixed $cookies = NULL[, int $flags = 0[, array $allowed_extras = NULL]]])
String cast handler. Alias of http\Cookie::toString().
Add a cookie.
http\Cookie http\Cookie::addCookie(string $cookie_name, string $cookie_value)
(Re)set the cookies.
http\Cookie http\Cookie::addCookies(array $cookies)
Add an extra attribute to the cookie list.
http\Cookie http\Cookie::addExtra(string $extra_name, string $extra_value)
Add several extra attributes.
http\Cookie http\Cookie::addExtras(array $extras)
Retrieve a specific cookie value.
string http\Cookie::getCookie(string $cookie_name)
Get the list of cookies.
Retrieve the effective domain of the cookie list.
Get the currently set expires attribute.
Retrieve an extra attribute.
string http\Cookie::getExtra(string $name)
Retrieve the list of extra attributes.
Get the currently set flags.
Get the currently set max-age attribute of the cookie list.
Retrieve the path the cookie(s) of this cookie list are effective at.
(Re)set a cookie.
http\Cookie http\Cookie::setCookie(string $cookie_name, string $cookie_value)
(Re)set the cookies.
http\Cookie http\Cookie::setCookies([array $cookies = NULL])
Set the effective domain of the cookie list.
http\Cookie http\Cookie::setDomain([string $value = NULL])
Set the traditional expires timestamp.
http\Cookie http\Cookie::setExpires([int $value = -1])
(Re)set an extra attribute.
http\Cookie http\Cookie::setExtra(string $extra_name[, string $extra_value = NULL])
(Re)set the extra attributes.
http\Cookie http\Cookie::setExtras([array $extras = NULL])
Set the flags to specified $value.
http\Cookie http\Cookie::setFlags([int $value = 0])
Set the maximum age the cookie may have on the client side.
http\Cookie http\Cookie::setMaxAge([int $value = -1])
Set the path the cookie(s) of this cookie list should be effective at.
http\Cookie http\Cookie::setPath([string $path = NULL])
Get the cookie list as array.
Retrieve the string representation of the cookie list.