Why would the same session ID not be valid for the server (which is
running on the same pc as the browser)?  Also I tried getting all the
cookies from the server, but I couldn't get that working either, so I'm
hoping to get it working with the same session.  

Russ

-----Original Message-----
From: Jesse Houwing [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 01, 2003 8:31 PM
To: CF-Talk
Subject: Re: CFHTTP and passing cookies

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=7A7836F85ACB43FBA352335
4
>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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to