HttpWatch Automation Reference - Version 13.x
HttpWatch Namespace / Cookie Class / IsHttpOnly Property

In This Topic
    IsHttpOnly Property
    In This Topic
    Indicates the state of the HttpOnly flag for this cookie.
    Public ReadOnly Property IsHttpOnly As Boolean
    public bool IsHttpOnly {get;}

    The HttpOnly flag can be set on a cookie returned from the server to stop it being accessed from Javascript in the browser, helping to reduce the change of Cross Site Server (XSS) attacks.

    Always check the value of the IsHttpOnlyKnown property before using IsHttpOnly.

    See Also