> We're having issues with separate shopping cart cfcookies being set for > http://www.mydomain.com and http://mydomain.com. > > 1. What's the best way to force each page to always use > http://www.mydomain.com if they come to the page using > http://mydomain.com.
Look at the CGI scope, then use CFLOCATION. > 2. For legacy shopping carts, how can I pull the cfcookie ids from both > www.mydomain.com and mydomain.com? If I can do that I > could then warn the user that they have two different carts and ask them > which one do they want to use. All you can do is look at the cookies you're sent from the browser. You can look at them directly using the GetHttpRequestData function. To get the browser to send cookies from one to the other, you could place content that resolves directly to http://mydomain.com/ in your page that itself resolves to http://www.mydomain.com/. The nested content could then write information to the page that contains it using JavaScript, perhaps putting the cookie value in a hidden form field. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331077 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

