set_expires


Description:

public void set_expires (Date expires)

Sets this's expiration time to expires.

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

(This sets the same property as set_max_age.)

Parameters:

this

a Cookie

expires

the new expiration time, or null