mdref.json config
[mdref/mdref-http] / http / 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