Thanks for all your replies guy's. Now I think I have found the cause of why
my CFID & CFTOKEN are always in the URL but it also raises another issue.
Oh, and I should have said that I am using Fusebox4.1, sorry!

In my fusebox.init.cfm file I have the following code;

<cfset request.self = "index.cfm">
<cfset request.myself = "#URLSessionFormat( '#request.self'#)>

It is the ' URLSessionFormat' that is including the CFID & CFTOKEN in the
URL string. The next problem is that this is only supposed to happen if
cookies are disabled on the client machine. In my case cookies are enabled,
I have changed the code to <cfset request.myself = "#request.self#")> and
everything works fine but it would appear that the check for cookies being
active is failing. Can anyone confirm if the following code is causing the
cookie check fail?

<cfif isdefined("cookie.CFID") AND isdefined("cookie.CFTOKEN")>
     <cfset localcfid = cookie.CFID>
     <cfset localtoken = cookie.CFTOKEN>
     <cfcookie name="CFID" value="#localcfid#">
     <cfcookie name="CFTOKEN" value="#localtoken#">
</cfif>


-----Original Message-----
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] 
Sent: 14 September 2005 13:56
To: CF-Talk
Subject: RE: Do Not Include CFID & CFTOKEN in URL?

> Sorry type, should have read

> ' All the places that I am using cflocation have
> addtoken="no". The CFID &
> CFTOKEN are appearing in the URL regardless of whether I
> use cflocation or
> not :-( I am getting real hassle from a customer who for
> some reason is
> insisting that they are NOT visible in the URL and I
> cannot get rid of them,
> please help!

> Oh, by the way, cookies will always be on, they cannot
> access the site
> without them being switched on.'

I have some vague recollection of this happening with one of my
projects... iirc in my case it was sometimes automatically appended to
the cgi.query_string variable (which was then being used to simply
forward all the url variables from the current page to another page in
a cflocation tag). So even when I specified addtoken="false" in the
cflocation tag, I still got that behavior.

Try a whole-project search in CF Studio / Dreamweaver / etc. for this
regular expression

(cfid|cftoken|urltoken|addtoken|cgi\.query_string)

Any of those could theoretically contain / cause references to
cfid/cftoken. UrlToken specifically is the combination of cfid &
cftoken variables in url-encoded form, i.e. "&cfid=xxx&cftoken=yyyy".

At the time I think I used a replace() to remove it from the url, i.e.


<cflocation
url="newpage.cfm?#rereplacenocase(cgi.query_string,urltoken,'')#"
addtoken="false">

hth

s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218208
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to