User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 423,552 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,919 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser: Programming Forums

CF 6.1 problems..Junior Programmer - NEED HELP!

Join Date: Aug 2004
Posts: 1
Reputation: digi is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
digi digi is offline Offline
Newbie Poster

Solution Re: CF 6.1 problems..Junior Programmer - NEED HELP!

  #5  
Aug 10th, 2004
Hey, I was running into this problem with my companies app after the upgrade to 6.1. We use cgi_query_string when switching to/from SSL and this was creating duplicate cfid/cftoken. We also use fusebox but whatever.

ANYWAY, here is what I did to solve our problem.

Put this first in your application.cfm.

<!--- cfid, cftoken querystring concatenation filter --->
<cfif isDefined('cfid') AND isDefined('cftoken')>
<cfset newUrl = CGI.Query_String>
<cfif cfid CONTAINS "," AND cftoken CONTAINS ",">
<cfset n_cfid = "&CFID=" & listGetAt(cfid, 1)>
<cfset newUrl = replace(newUrl, n_cfid, "", "ONE")>
<cfset n_cftoken = "&CFTOKEN=" & listGetAt(cftoken, 1)>
<cfset newUrl = replace(newUrl, n_cftoken, "", "ONE")>
<cflocation url="#cgi.PATH_INFO#?#newUrl#">
</cfif>

</cfif>

<!--- end filter --->
Reply With Quote  
All times are GMT -4. The time now is 6:10 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC