Cookie.setExpires

void setExpires(glib.date_time.DateTime expires)

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 [soup.cookie.Cookie.setMaxAge].)

Parameters

expiresthe new expiration time, or null