That was my reaction too. But I kept checking the value of the cookie with
<cfoutput> and it had only one value.
I ended up setting the query to a list and then setting the value of the
cookie to the list and it worked.
Sebastian
on 1/27/01 10:19 AM, Philip Arnold - ASP at [EMAIL PROTECTED] wrote:
> I'm sorry, but, WHAT?
> Since you're setting the cookie from the local variable, how can they NOT be
> the same?
>
> Philip Arnold
> Director
> Certified ColdFusion Developer
> ASP Multimedia Limited
> T: +44 (0)20 8680 1133
-------------------
> The query MemberRoles returns 2 values: 2 3
>
> <!--- Set the query to a local variable --->
> <cfoutput query="MemberRoles"
> <cfset Roles = RoleID>
> </cfoutput>
>
> <!--- Set the local variable to a cookie --->
> <cfcookie name="CFRoles" value="#Roles#">
>
> Only one of the values is set to the cookie which in this case the value
> becomes
>
> CFRoles=3
>
> I don't understand why the value of the local variable does not become the
> value of the cookie.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists