setExpires

fun setExpires(expires: <Error class: unknown class>)

Sets @cookie's expiration time to @expires.

If @expires is null, @cookie will be a session cookie and will expire at the end of the client's session.

(This sets the same property as method@Cookie.set_max_age.)

Parameters

expires

the new expiration time, or null