I am dynamically creating cookies and getting the following error.
I create the cookie by setting a uuid, then strip out everything but the
first part of the uuid
Example:
<!--- First set the id varable --->
<cfset variables.id = #createuuid()#>
<!--- Next I set the cookie id, by stripping out everything from the above
id except for the first set of numbers. format is
XXXXXX-XXXXX-XXXX-XXXXX --->
<cfset variables.cookieid = #ListGetAt(variables.id, 1, "-")#>
When i do that, I then set a cookie such as <cfcookie
name="#Variables.cookieid#" value="1">
But then on another page, I check for that cookie and get the following
error.
<cfif #IsDefined("cookie.#variables.cookieid#")# Is "Yes">
.....
</cfif>
Here is the error:
Parameter 1 of function IsDefined which is now "cookie.00A27221" must be a
syntactically valid variable name
What is the syntax problem .. do cookie names not like either alpha or
numeric characters?
Thanks
Paul Giesenhagen
QuillDesign
http://www.quilldesign.com
SiteDirector - Commerce Builder
______________________________________________________________________
Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
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