BBjCookie::isHttpOnly
Description
In BBj 18.04 and higher, this method returns true if the cookie can only be sent over HTTP.
Syntax
Return Value |
Method |
---|---|
boolean |
isHttpOnly() |
Parameters
None.
Return Value
Returns a boolean where 0 = BBjCookie is not only for secure connections and 1 = BBjCookie is only for secure connections.
Remarks
HttpOnly is an additional flag included in a Set-Cookie HTTP response header. Using the HttpOnly flag when generating a cookie helps mitigate the risk of client side script accessing the protected cookie (if the browser supports it).
Example
|