mdref.json config
[mdref/mdref-http] / http / Cookie / setExpires.md
1 # http\Cookie http\Cookie::setExpires([int $value = -1])
2
3 Set the traditional expires timestamp.
4 See http\Cookie::setMaxAge() for a safer alternative.
5
6 ## Params:
7
8 * Optional int $value = -1
9 The expires timestamp as seconds since the epoch.
10
11 ## Returns:
12
13 * http\Cookie, self.
14
15 ## Throws:
16
17 * http\Exception\InvalidArgumentException