Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

url.co_ID VS. cookie.id

0 views
Skip to first unread message

Coldfusionstudent

unread,
Apr 6, 2007, 10:58:53 AM4/6/07
to
Hello,
What is the difference between
url.co_ID VS. cookie.id
?

do we need to do modify another page (another page .cfm)
after this.
?

craigkaminsky

unread,
Apr 6, 2007, 12:41:59 PM4/6/07
to
Ultimately, the primary difference here is the variable scope,

URL is the scope for all variables contained within the URL query string. For
example, take the URL:
http://www.mysite.com/index.cfm?var1=hello&var2=world

This URL contains two variables in it's query string: var1 and var2. To access
them in a CFM template, you would use the following:
<cfoutput>
#URL.var1#<br />
#URL.var2#
</cfoutput>

cookie.id is referencing the Cookie scope and, like the URL scope noted above,
it is a way to reference variables and their values stored in a cookie. This
page on the Adobe LiveDocs should help further with cookies and their scopes:

http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhel
p.htm?context=ColdFusion_Documentation&file=00000233.htm

lan99

unread,
Apr 7, 2007, 11:37:08 AM4/7/07
to
Can you give some more context or some of the code that surrounds your question? I might be able to provide a more in-depth answer for you.
0 new messages