Wouldn't <cfif IsDefined("cookie[variables.cookiename]")> work?Matt Liotta President & CEO Montara Software, Inc. http://www.montarasoftware.com/ V: 415-577-8070 F: 415-341-8906 P: [EMAIL PROTECTED] > -----Original Message----- > From: Paul Giesenhagen [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 24, 2002 10:13 PM > To: CF-Talk > Subject: Checking for dynamic cookie > > 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 > > > ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.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

