Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
mikey999 #1
Creating cookies
Is there some new way to create cookies in cfm 6.1 I used this code before
in cfm 5.0 and it worked great. <DBCOOKIE NAME='OwnerID'
VALUE='#session.OwnerID#' EXPIRES=never> <DBCOOKIE NAME='ContactID'
VALUE='#session.ContactID#' EXPIRES=never>
<cfoutput>#cookie.ContactID#</cfoutput><cfabort> After running this code I
get an error that says 'Element CONTACTID is undefined in COOKIE. ' what
gives?
mikey999 Guest
-
creating shared folder location hanges when creating a review
Hi All, I am using Acrobat Pro 8.1.2 for Mac. When I try to create a document for review, I get through all the steps until I get the pop up... -
Creating Cookies or Variables for Authentication
Hope someone can help on this! I have been charged with revamping the online presence for a magazine. Aside from the public access for the site,... -
Issues creating cookies
I seem to not be able to make cookies on my site. You can see in this example http://www.getf.org/test.cfm That the cookies are created and they... -
Cookies... Help Please !
In article <2lg5ivcd5n5t8ao8fp2050rc65sei8uai7@4ax.com>, Fred < @> wrote: Does php allow this? I would use strcmp. -
cookies in asp
If it's a real cookie, you can get it with php into the cookie vars.. If it's an asp session, forget it... "Carlos Castillo"... -
paross1 #2
Re: Creating cookies
How about CFCOOKIE?
<cfcookie
name = "cookie_name"
value = "text"
expires = "period"
secure = "Yes" or "No"
path = "url"
domain = ".domain">
paross1 Guest
-
mikey999 #3
Re: Creating cookies
Ok so I must be doing something wrong. Here is my test one
[url]http://www.getf.org/test.cfm[/url] it shows the code I am using and it sets the
cookies ok. But then look at test 2 [url]http://www.getf.org/test2.cfm[/url] all this
page has on it is <br><br> I get this result. <br> <b><cfoutput>OwnerID cookie
= #COOKIE.OwnerID#</cfoutput><br> <b><cfoutput>ContactID cookie =
#COOKIE.ContactID#</cfoutput> <cfabort></b> But I get this error 'Element
OWNERID is undefined in COOKIE.' It's like it sets the cookie at first but o
nthe second page the cook dose not work.
mikey999 Guest
-
mikey999 #4
Re: Creating cookies
Ok so I must be doing something wrong. Here is my test one
[url]http://www.getf.org/test.cfm[/url] it shows the code I am using and it sets the
cookies ok. But then look at test 2 [url]http://www.getf.org/test2.cfm[/url] all this
page has on it is I added spaces so it would show up here. <br><br> I get this
result. <br> <b>< cfoutput>OwnerID cookie = #COOKIE.OwnerID#</cfoutput><br>
<b>< cfoutput>ContactID cookie = #COOKIE.ContactID#</cfoutput> < cfabort></b>
But I get this error 'Element OWNERID is undefined in COOKIE.' It's like it
sets the cookie at first but o nthe second page the cook dose not work.
mikey999 Guest
-
-
mikey999 #6
Re: Creating cookies
nope I found out about that issue a long time ago. But I did find out why this
was not working. The domain was set like domain='getf.org' when it has to be
set as domain='.getf.org' you have to have the extra . in front of the domain.
One book I read did not show this as the example but another book this show
this. So I was able to fix it I think. Still playing arround but this looks
better now.
mikey999 Guest
-
trbaker #7
Re: Creating cookies
You might try dumping the cookie scope on the page that sets (or gets) your cookie, to help your troubleshoot:
<cfdump var="#cookie#">
trbaker Guest



Reply With Quote

