
BBjCookie::getVersion
Description
In BBj 12.0 and higher, this method returns the version of the protocol this cookie complies with. Version 1 complies with RFC 2109, and version 0 complies with the original cookie specification drafted by Netscape. Cookies provided by a browser use and identify the browser's cookie version.
Syntax
Return Value |
Method |
int |
getVersion() |
Parameters
None.
Return Value
0 if the cookie complies with the original Netscape specification; 1 if the cookie complies with RFC 2109
Remarks
The example below shows getting the version in a BBjCookie of a within a BBjServlet
Example
REM
Obtain the instance of the BBjAPI object |