
BBjCookie::setSecure
Description
In BBj 12.0 and higher, this method indicates to the browser whether the cookie should only be sent using a secure protocol, such as HTTPS or SSL.
The default value is false.
Syntax
Return Value |
Method |
void |
setSecure(boolean secure) |
Parameters
Variable |
Description |
value |
if true, sends the cookie from the browser to the server only when using a secure protocol; if false, sent on any protocol |
Return Value
None.
Remarks
The example below shows setting the secure flag in a BBjCookie of a within a BBjServlet
Example
REM
Obtain the instance of the BBjAPI object |