
BBjCookie::getMaxAge
Description
In BBj 12.0 and higher, this method returns the maximum age of the cookie, specified in seconds, By default, -1 indicating the cookie will persist until browser shutdown.
Syntax
Return Value |
Method |
int |
getMaxAge() |
Parameters
None.
Return Value
an integer specifying the maximum age of the cookie in seconds; if negative, means the cookie persists until browser shutdown
Remarks
The example below shows getting the max age of a BBjCookie of a within a BBjServlet
Example
REM
Obtain the instance of the BBjAPI object |