Cookie.setMaxAge
void setMaxAge(int maxAge)Sets cookie's max age to max_age.
If max_age is -1, the cookie is a session cookie, and will expire at the end of the client's session. Otherwise, it is the number of seconds until the cookie expires. You can use the constants [soup.types.COOKIE_MAX_AGE_ONE_HOUR], [soup.types.COOKIE_MAX_AGE_ONE_DAY], [soup.types.COOKIE_MAX_AGE_ONE_WEEK] and [soup.types.COOKIE_MAX_AGE_ONE_YEAR] (or multiples thereof) to calculate this value. (A value of 0 indicates that the cookie should be considered already-expired.)
This sets the same property as [soup.cookie.Cookie.setExpires].
Parameters
maxAge | the new max age |