Specifying Privacy Settings
A version of this page is also available for
Privacy settings for the Internet zone can be changed from the Privacy tab in the Internet Options dialog box. The implementation uses the Privacy Functions to perform the following tasks:
Change the privacy level
Use the PrivacySetZonePreferenceW function to change the privacy levels in Internet Explorer. Pass the appropriate template identifiers in the dwTemplate parameter. For more information about PrivacyTemplates flags to specify, see Privacy Flags.
Apply advanced settings
Use PrivacySetZonePreferenceW to apply advanced settings. Pass PRIVACY_TEMPLATE_ADVANCED as the template identifier in dwTemplate and specify the template to use in the pszPreference parameter depending on the option selected in the Privacy tab of the Internet Options dialog box in your browser. The following table shows the values to pass.
The Accept radio button is selected in the Privacy tab.
The Block radio button is selected in the Privacy tab.
The Prompt radio button is selected in the Privacy tab.
session=a is added to each one of these templates if Always allow session cookies is enabled in the Privacy tab.
- Manage site-by-site cookie handling
Use the following functions to provide site-by-site cookie management.
In addition to these functions, site settings can also be modified from the user interface Control Panel. Users can specify how cookie decisions are applied to cookies from specific sites. These site-specific decisions are stored in the registry by WinInet when the user selects the site and specifies the cookie actions to apply to all cookies from the site. For more information about site cookie handling registry keys, see Privacy Settings in WinInet Registry Settings.