Full of questions tonight :)

I need to check for a dynamically set cookie, and I know that I can do it with 
Evaluate, but trying to stay away from that IF possible.

I am setting a cookie that is dynamic, cookie.ar3wewwafda (example).

I then want to later do a check on that cookie in an if statement ... any suggestions 
on how I may do that?

Here is the code I have that is using Evaluate, could there be another way?

<!--- Setting the cookie --->
<cfset variables.cookiename = "A#ReplaceNoCase(url.id, "-", "", "ALL")#">
<cfcookie name="#variables.cookiename#" value="1" expires="NEVER">


<!--- on another page evaluating the cookie --->

   <cfset variables.cookiename = "A#ReplaceNoCase(url.id, "-", "", "ALL")#">
   <cfparam name="cookie.#variables.cookiename#" default="0">
   <cfif Evaluate("cookie.#variables.cookiename#") Is 0>
    ...code...
   </cfif>

Thanks again,

Paul Giesenhagen
QuillDesign


______________________________________________________________________
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
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to