WS_COOKIE_MODE enumeration (webservices.h)

An enumeration used to specify how to handle HTTP cookies.

Syntax

typedef enum {
  WS_MANUAL_COOKIE_MODE = 1,
  WS_AUTO_COOKIE_MODE = 2
} WS_COOKIE_MODE;

Constants

 
WS_MANUAL_COOKIE_MODE
Value: 1
In this mode, cookies are not processed by the client channel.


If a server sends a cookie to the client, the client
channel will ignore the cookie (it will not include
the cookie value in subsequent requests).


An application can use the WS_HTTP_HEADER_MAPPING feature to handle cookies manually, if desired.
WS_AUTO_COOKIE_MODE
Value: 2
In this mode, cookies are automatically tracked by
the channel.


If a server sends a cookie to the client,
the channel will automatically track the cookie and
will include the cookie in subsequent requests.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header webservices.h