projects
/
mdref
/
mdref
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
workflow/publish: update to php-8.1
[mdref/mdref]
/
Cookie
/
addCookie.md
1
# http\Cookie http\Cookie::addCookie(string $cookie_name, string $cookie_value)
2
3
Add a cookie.
4
See http\Cookie::setCookie() and http\Cookie::addCookies().
5
6
## Params:
7
8
* string $cookie_name
9
The key of the cookie.
10
* string $cookie_value
11
The value of the cookie.
12
13
## Returns:
14
15
* http\Cookie, self.
16
17
## Throws:
18
19
* http\Exception\InvalidArgumentException