set_max_age


Description:

public void set_max_age (int max_age)

Sets this'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_cookie_max_age_one_hour, soup_cookie_max_age_one_day, soup_cookie_max_age_one_week and soup_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 [[email protected]_expires].

Parameters:

this

a Cookie

max_age

the new max age




2022 vala-language.org