Cookie.setHttpOnly

Sets cookie's HttpOnly attribute to http_only.

If true, cookie will be marked as "http only", meaning it should not be exposed to web page scripts or other untrusted code.

class Cookie
void
setHttpOnly
()

Parameters

httpOnly bool

the new value for the HttpOnly attribute