Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The InternetCookieState enumeration defines the state of the cookie.
Syntax
typedef enum {
COOKIE_STATE_UNKNOWN = 0x0,
COOKIE_STATE_ACCEPT = 0x1,
COOKIE_STATE_PROMPT = 0x2,
COOKIE_STATE_LEASH = 0x3,
COOKIE_STATE_DOWNGRADE = 0x4,
COOKIE_STATE_REJECT = 0x5,
COOKIE_STATE_MAX
} InternetCookieState;
Constants
COOKIE_STATE_UNKNOWNValue: 0x0 Reserved. |
COOKIE_STATE_ACCEPTValue: 0x1 The cookies are accepted. |
COOKIE_STATE_PROMPTValue: 0x2 The user is prompted to accept or deny the cookie. |
COOKIE_STATE_LEASHValue: 0x3 Cookies are accepted only in the first-party context. |
COOKIE_STATE_DOWNGRADEValue: 0x4 Cookies are accepted and become session cookies. |
COOKIE_STATE_REJECTValue: 0x5 The cookies are rejected. |
COOKIE_STATE_MAXSame as COOKIE_STATE_REJECT. |
Remarks
Note WinINet does not support server implementations. In addition, it should not be used from a service. For server implementations or services use Microsoft Windows HTTP Services (WinHTTP).
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps only] |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Header | wininet.h |
See also
InternetEnumPerSiteCookieDecision