0 out of 1 rated this helpful - Rate this topic

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

Msxml6.h

IDL

Msxml6.idl

See also

GetCookie Method
XHR_COOKIE Structure
IXMLHTTPRequest2

 

 

Send comments about this topic to Microsoft

Build date: 10/26/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.