Cookie.setHttpOnly

Marks or unmarks this Cookie as <i>HttpOnly</i>.

<p> If <tt>isHttpOnly</tt> is set to <tt>true</tt>, this cookie is marked as <i>HttpOnly</i>, by adding the <tt>HttpOnly</tt> attribute to it.

<p> <i>HttpOnly</i> cookies are not supposed to be exposed to client-side scripting code, and may therefore help mitigate certain kinds of cross-site scripting attacks.

@param isHttpOnly true if this cookie is to be marked as <i>HttpOnly</i>, false otherwise

class Cookie
void
setHttpOnly
()

Meta