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 (/).
To enable cookie sharing across domains
Expand Commerce Server Manager, expand Commerce Sites, and then click the site you want to administer.
Expand Applications, right-click the application you want to configure, and then click Properties.
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.
Click OK.
Restart IIS. For instructions, see Restarting IIS.
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.
To enable cookie sharing across applications in the same site
Expand Commerce Server Manager, expand Commerce Sites, and then click the site you want to administer.
Expand Applications, right-click the application you want to configure, and then click Properties.
Clear the Set cookie path to application box, and then click OK.
Restart IIS. For instructions, see Restarting IIS.