getMaxAge()

Returns a number representing how long the cookie is valid for, in seconds. If set to < 0, a session cookie is issued. If set to 0, the cookie is deleted.

Signature

public Integer getMaxAge()

Return Value

Type: Integer