setHttpOnly

fun setHttpOnly(httpOnly: Boolean)

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

httpOnly

the new value for the HttpOnly attribute