vertx / io.vertx.rxjava.ext.web / Cookie / setMaxAge

# setMaxAge

`open fun setMaxAge(maxAge: Long): Cookie`

Sets the maximum age of this cookie in seconds. If an age of `0` is specified, this cookie will be automatically removed by browser because it will expire immediately. If java.lang.Long is specified, this cookie will be removed when the browser is closed. If you don't set this the cookie will be a session cookie and be removed when the browser is closed.

### Parameters

`maxAge` - The maximum age of this cookie in seconds

Return