Enabling Cookie Sharing Across Domains/Applications

You can share cookies across domains. In order to do this, your domains must have a common sub-domain name. For example, msdn.microsoft.com and premier.microsoft.com can share cookies with the domain property set to .microsoft.com. You cannot set the domain to .com.

If you do not want to share cookies across domains, you can instead share them across applications. To do this, you set the path property on the cookie to the application. For example, you would set the path to /retail to share the cookie across all applications in the retail site. To share cookies between applications that do not have the same virtual directory, you must set the path to the root (/).

  1. Expand Commerce Server Manager, expand Commerce Sites, and then click the site you want to administer.

  2. Expand Applications, right-click the application you want to configure, and then click Properties.

  3. In the Number of shared domain levels box, specify how many domain levels must be in common in order to share a cookie. For example, for premier.microsoft.com and msn.microsoft.com to share the microsoft.com cookie, set the value to 2.

  4. Click OK.

  5. Restart IIS. For instructions, see Restarting IIS.

Ee796802.note(en-US,CS.10).gif Note

  • If you are using encryption, verify that the encryption key is the same on both domains. For information about generating a new encryption key, see Generating a New Encryption Key.
  1. Expand Commerce Server Manager, expand Commerce Sites, and then click the site you want to administer.

  2. Expand Applications, right-click the application you want to configure, and then click Properties.

  3. Clear the Set cookie path to application box, and then click OK.

  4. Restart IIS. For instructions, see Restarting IIS.

See Also

Cookies and Authentication

Working with Site Security and Filters

Configuring an Application

Site Security Objects

AuthManager Object


All rights reserved.