CCookie::getVersion
The CCookie::getVersion function retrieves the Version attribute of the cookie.
int getVersion();
Return Type
int
Upon successful completion, an integer which indicates the version of the cookie is returned. Otherwise, a negative value is returned.
Parameters
None.
Remarks
This function retrieves the Version attribute of the cookie. Version 1 complies with RFC 2965, and version 0 complies with the original Netscape Cookie Specification. Cookies provided by a browser use and identify the browser's cookie version.
The CCookie::setVersion function can be used to set the Version attribute of the cookie.
See Also
CCookie, CCookie::setVersion, CResponse::addCookie, CRequest::getCookies, CRequest::getCookie
Example