Discuss this help topic in SecureBlackbox Forum

TElCookie.HTTPOnly

TElCookie     See also     


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


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

Declaration

[C#]
    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)

[Java]
    boolean getHTTPOnly();
    void setHTTPOnly(boolean 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