Ruslan Sivak wrote: >I went to staples.com and added an item to my shopping cart. Then I got >all the cookies that were set by using >javascript:document.write(document.cookie); > >Now I'm using the following code to set the cookies and do a cfhttp. >For some reason when I do the cfhttp it tells me that there are no items >in my cart. When I go to the same page in IE, I see items in my cart. > ><cfset cookies=ArrayNew(1)> ><cfset cookies[1]="zipcode=11214"> ><cfset >cookies[2]="ShopperManager%2F=ShopperManager%2F=7A7836F85ACB43FBA3523354 >CA7E4083"> ><cfset cookies[3]="MACHINE%5FMODE=SOHO"> ><cfset cookies[4]="ASPSESSIONIDGGQGGYDG=KOJEANEBMGBHFBPHHDPICNMO"> ><cfset cookies[5]="SITESERVER=ID=e68e12640c7844ec16b5e2820de979e3"> ><cfset cookies[6]="ACRU=W3HU75SE8FK78MB69385329N6TAW8915"> > > You first need to CFHTTP the site to get a new sessionid (the one you used in your browser is not valid for the server) and insert that into your cookies.
Then CGHTTP to update the cart. Make sure you save the ASPsessionid in a coldfusion session variable so you can use it again in that session. Jesse ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

