The logic is wrong here.

You loop through a query setting Roles to 2, then 3.

After you that you set the cookie to the last value Roles was set to which
in this case is 3.

If you want to set a cookie to both values as a list use the ValueList
function to create the list string.

Adam

-----Original Message-----
From:   Philip Arnold - ASP [SMTP:[EMAIL PROTECTED]]
Sent:   Saturday, January 27, 2001 4:19 PM
To:     CF-Talk
Subject:        RE: Setting a Cookie

> 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.

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

"Websites for the real world"

**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**********************************************************************


> -----Original Message-----
> From: sebastian palmigiani [mailto:[EMAIL PROTECTED]]
> Sent: 27 January 2001 15:19
> To: CF-Talk
> Subject: Setting a Cookie
>
>
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to