mdref.json config
[mdref/mdref-http] / http / Cookie / setExtra.md
1 # http\Cookie http\Cookie::setExtra(string $extra_name[, string $extra_value = NULL])
2
3 (Re)set an extra attribute.
4 See http\Cookie::addExtra().
5
6 > ***NOTE:***
7 > The attribute will be removed from the extras list if $extra_value is NULL.
8
9 ## Params:
10
11 * string $extra_name
12 The key of the extra attribute.
13 * Optional string $extra_value
14 The value of the extra attribute.
15
16 ## Returns:
17
18 * http\Cookie, self.
19
20 ## Throws:
21
22 * http\Exception\InvalidArgumentException