Cookie.getMaxAge

Gets the maximum age in seconds of this Cookie.

<p> By default, <code>-1</code> is returned, which indicates that the cookie will persist until browser shutdown.

@return an integer specifying the maximum age of the cookie in seconds; if negative, means the cookie persists until browser shutdown

@see #setMaxAge

class Cookie
int
getMaxAge
()

Meta