Cookie.setHttpOnly

void setHttpOnly(bool httpOnly)

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.

Parameters

httpOnlythe new value for the HttpOnly attribute