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

setMaxAge

abstract 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 Long#MIN_VALUE 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