CInternetSession::SetCookie

static BOOL SetCookie( LPCSTR pstrUrl**, LPCTSTR** pstrCookieName**, LPCTSTR** pstrCookieData );

Return Value

Returns TRUE if successful, or FALSE otherwise. To get the specific error code, call GetLastError.

Parameters

pstrUrl

A pointer to a null-terminated string that specifies the URL for which the cookie should be set.

pstrCookieName

A pointer to a string containing the name of the cookie.

pstrCookieData

A pointer to a string containing the actual string data to associate with the URL.

Remarks

This member function implements the behavior of the Win32 message , as described in the Platform SDK.

See Also   CInternetSession::GetCookieLength, CInternetSession::GetCookie