InternetSetCookieInternetSetCookie*
*Contents  *Index  *Topic Contents
*Previous Topic: InternetGetCookie
*Next Topic: Persistent URL Cache Functions

InternetSetCookie

BOOL InternetSetCookie(
    IN LPCSTR lpszUrlName,
    IN LPCSTR lpszCookieName,
    IN LPCSTR lpszCookieData
);

Sets a cookie on the specified URL.

lpszUrlName
Address of a null-terminated string that specifies the URL for which the cookie should be set.
lpszCookieName
Address of a string that contains the name to associate with the cookie. If this parameter is NULL, no name is associated with the cookie.
lpszCookieData
Address of the actual data to associate with the URL.

Creating a new cookie might cause a dialog box to appear on the screen if the appropriate registry value, AllowCookies, is set. There is no way to change the registry value from a Win32 Internet function.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.