open fun setCookieMaxAge(maxAge: Duration): Unit
Set the value for the "Max-Age" attribute of the cookie that holds the session id. For the range of values see ResponseCookie#getMaxAge().
ResponseCookie#getMaxAge()
By default set to -1.
maxAge - the maxAge duration value
maxAge