Discuss this help topic in SecureBlackbox Forum

TElCookie.HTTPOnly

TElCookie     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Specifies if the cookie should be used only for HTTP communication.

Declaration

[C#/Java]
    bool HTTPOnly;

[VB.NET]
    Property HTTPOnly As Boolean

[Pascal]
    property HTTPOnly : boolean;

[C++]
    bool get_HTTPOnly();
    void set_HTTPOnly(bool Value);

[PHP]
    bool get_HTTPOnly()
    void set_HTTPOnly(bool $Value)

Description

This attribute is defined in RFC 2965 and was previously used in Netscape cookie specification.      From RFC 6265:

The HttpOnly attribute limits the scope of the cookie to HTTP requests. In particular, the attribute instructs the user agent to omit the cookie when providing access to cookies via "non-HTTP" APIs (such as a web browser API that exposes cookies to scripts).

See also:     Included    

Discuss this help topic in SecureBlackbox Forum