5b26502d25e5e943de279a2ac78a616fb4f31954
[mdref/mdref-http] / http / Cookie / setCookie.md
1 # http\Cookie http\Cookie::setCookie(string $cookie_name, string $cookie_value)
2
3 (Re)set a cookie.
4 See http\Cookie::addCookie() and http\Cookie::setCookies().
5
6 > **Note:** The cookie will be deleted from the list if $cookie_value is NULL.
7
8 ## Params:
9
10 * string $cookie_name
11 The key of the cookie.
12 * string $cookie_value
13 The value of the cookie.
14
15 ## Returns:
16
17 * http\Cookie, self.