Edit
↰
Home
↑
http
↑
Cookie
↻
Cookie::addCookie
↲
Cookie::__construct
↲
Cookie::__toString
↲
Cookie::addCookies
↲
Cookie::addExtra
↲
Cookie::addExtras
↲
Cookie::getCookie
↲
Cookie::getCookies
↲
Cookie::getDomain
↲
Cookie::getExpires
↲
Cookie::getExtra
↲
Cookie::getExtras
↲
Cookie::getFlags
↲
Cookie::getMaxAge
↲
Cookie::getPath
↲
Cookie::setCookie
↲
Cookie::setCookies
↲
Cookie::setDomain
↲
Cookie::setExpires
↲
Cookie::setExtra
↲
Cookie::setExtras
↲
Cookie::setFlags
↲
Cookie::setMaxAge
↲
Cookie::setPath
↲
Cookie::toArray
↲
Cookie::toString
#
http\Cookie
http\Cookie::addCookie
(
string
$cookie_name
,
string
$cookie_value
)
Add a cookie. See
http\Cookie::setCookie
() and
http\Cookie::addCookies
().
Params:
#
string
$cookie_name
#
The key of the cookie.
string
$cookie_value
#
The value of the cookie.
Returns:
#
http\Cookie
,
self
.
Throws:
#
http\Exception\InvalidArgumentException
Show Comments from Github Discussions