open fun setCookieMaxAge(@Nullable cookieMaxAge: Int): Unit
Use the given maximum age (in seconds) for cookies created by this generator. Useful special value: -1 ... not persistent, deleted when client shuts down.
Default is no specific maximum age at all, using the Servlet container's default.
See Also
javax.servlet.http.Cookie#setMaxAge