cookie
[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:** The attribute will be removed from the extras list if $extra_value is NULL.
7
8 ## Params:
9
10 * string $extra_name
11 The key of the extra attribute.
12 * Optional string $extra_value
13 The value of the extra attribute.
14
15 ## Returns:
16
17 * http\Cookie, self.