IXMLHTTPRequest2::SetCookie method
Sets a cookie associated with the specified URL.
Syntax
HRESULT SetCookie(
const XHR_COOKIE *pCookie,
DWORD *pdwCookieState
);
Parameters
- pCookie
-
Pointer to a XHR_COOKIE object that specifies the cookie being set on the HTTP request.
- pdwCookieState
-
Value containing authentication, session identification, user preferences, and other information specific to a user's interactions with a web resource.
Return value
Returns S_OK on success.
Requirements
|
Minimum supported client | Windows 8 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server | Windows Server 2012 [desktop apps | Windows Store apps] |
|
Version | MSXML 6.0 and later |
|
Header |
|
|
IDL |
|
See also
Send comments about this topic to Microsoft
Build date: 10/26/2012