This did it! Thanks!

-----Original Message-----
From: Mosh Teitelbaum [mailto:mosh.teitelbaum@;evoch.com]
Sent: Thursday, November 07, 2002 10:15 AM
To: CF-Talk
Subject: RE: list question


Place the following just after your CFLOOP statement.  It creates variables
in the REQUEST scope.

                <CFSET name = GetToken(cookievaluepairpointer, 1, "=")>
                <CFSET val = GetToken(cookievaluepairpointer, 2, "=")>
                <CFSET SetVariable("REQUEST.#name#", val)>

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


> -----Original Message-----
> From: Andres [mailto:Andres@;vitacost.com]
> Sent: Thursday, November 07, 2002 10:06 AM
> To: CF-Talk
> Subject: list question
>
>
> Hello everyone,
>
> i am reading a cookie created by an ASP page. Let's called the
> cookie "aspcookie".
>
> The way the ASP cookie was made was using "crumbs" in the following way:
>
> ==============================================
>       Response.Cookies("AffilPassedInfo")("cookieID") = data1
>       Response.Cookies("AffilPassedInfo")("ID") = data2
>       Response.Cookies("AffilPassedInfo")("tblID") = data3
> ==============================================
>
> so, at the end, when i read the cookie in CF, it looks like this
> (w/o the quotes of course)
> ==============================================
> "cookieID=1ID=1&tblID=QQ_323s"
> ==============================================
>
> I have gotten as far as breaking this into individual value pairs
> by looping through the list (& is its delimiter). My problem is
> that i cannot actually create a variable for each item and assign
> it its given value based on the list. Here is what i have tried:
>
> ==============================================
> <cfif isdefined("cookie.AffilPassedInfo")>
> <!--- AffilPassedInfo is in this customer's system --->
>       <cfoutput>#cookie.AffilPassedInfo#</cfoutput>
>       <hr>
>       <cfloop list="#cookie.AffilPassedInfo#" delimiters="&"
> index="cookievaluepairpointer">
>               <cfoutput>
>                       <!--- #cookievaluepairpointer# =
> #cookievaluepairpointer# -  --->
>                       <cfset
> #cookievaluepairpointer#>#cookievaluepairpointer#<br>
>
>
>               </cfoutput>
>       </cfloop>
>
>       <cfoutput>
>               cookieID = #cookieID#<br>
>               ID = #ID#<br>
>               AffMemID = #AffMemID#<br>
>               tblID = #tblID#<br>
>       </cfoutput>
>
> <cfelse>
>       not accessible
> </cfif>
> ==============================================
>
> The actual result i get is this:
>
> ==============================================
> cookieID=149755&ID=NLHp110102&AffMemID=&tblID=386382
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to