cookie
[mdref/mdref-http] / http / Cookie / setMaxAge.md
1 # http\Cookie http\Cookie::setMaxAge([int $value = -1])
2
3 Set the maximum age the cookie may have on the client side.
4 This is a client clock departure safe alternative to the "expires" attribute.
5 See http\Cookie::setExpires().
6
7 ## Params:
8
9 * Optional int $value = -1
10 The max-age in seconds.
11
12 ## Returns:
13
14 * http\Cookie, self.