Wow, you were right about there being a lot happening in there!
You seem to have code that looks at CFID and CFTOKEN in the URL:
<CFIF isDefined("URL.CFID") AND ListLen(URL.CFID) GT 1>
<CFSET URL.CFID = ListGetAt(URL.CFID, 1)>
</CFIF>
<CFIF isDefined("URL.CFTOKEN") AND ListLen(URL.CFTOKEN) GT 1>
<CFSET URL.CFTOKEN = ListGetAt(URL.CFTOKEN, 1)>
</CFIF>
I don't think it has anything to do with the problem but I don't see when
either of those two code blocks will be entered. ListLen(URL.CFIF) GT 1 will
use a comma as the delimiter and neither CFID or CFTOKEN contain commas as
far as I know and will never be greater than 1. Ignore this if this is
something other than what it seems.
That's the first thing that sprung to mind, the second was where you look at
CGI.PATH_INFO. Is this working as it should? Could you maybe reduce this to
only two possible application names to make sure that isn't effecting
anything?
Ade
-----Original Message-----
From: Scott Brady [mailto:[EMAIL PROTECTED]
Sent: 28 February 2005 20:03
To: CF-Talk
Subject: Re: REPOST: Two applications sharing cfid/cftoken
Ok, here goes. I'm going to try to strip out anything I know is unnecessary.
App B's application.cfm (complete):
<CFSET bEnforceServerName = true>
<CFSET bEnforceHTTPS = true>
<CFSET bEnforceStatusCheck = true>
<CFSET bEnforceClientCookies = "YES">
<CFINCLUDE TEMPLATE="../application.cfm">
<CFIF NOT IsDefined("session.AdminID")>
<CFSET SubmitState = "DEFAULT">
<CFLOCATION ADDTOKEN="No"
URL="#application.Administration#LogInOut/LoginOuter.cfm">
</CFIF>
APP A's application.cfm (up to the application tag):
<CFPARAM NAME="bEnforceNoRightClick" DEFAULT="true">
<CFPARAM NAME="bEnforceServerName" DEFAULT="false">
<CFPARAM NAME="bEnforceHTTPS" DEFAULT="false">
<CFPARAM NAME="bEnforceStatusCheck" DEFAULT="false">
<CFPARAM NAME="bEnforceActiveSession" DEFAULT="false">
<CFPARAM NAME="bEnforceErrorHandling" DEFAULT="true">
<CFPARAM NAME="bEnforceClientCookies" DEFAULT="NO">
<CFPARAM NAME="bClientSSO" DEFAULT="false">
<CFPARAM NAME="bEnforceNoCache" DEFAULT="false">
<CFIF isDefined("URL.CFID") AND ListLen(URL.CFID) GT 1>
<CFSET URL.CFID = ListGetAt(URL.CFID, 1)>
</CFIF>
<CFIF isDefined("URL.CFTOKEN") AND ListLen(URL.CFTOKEN) GT 1>
<CFSET URL.CFTOKEN = ListGetAt(URL.CFTOKEN, 1)>
</CFIF>
<CFINCLUDE TEMPLATE="_iCFApplicationName.cfm">
<cfset vApplicationName = variables.iCFApplicationName />
<CFAPPLICATION NAME="#vApplicationName#"
SESSIONMANAGEMENT="YES"
SESSIONTIMEOUT="#CreateTimeSpan(0, 1, 0, 0)#"
SETCLIENTCOOKIES="#bEnforceClientCookies#">
and, finally, that file "_iCFApplication.Name.cfm":
<CFSET iCFApplicationName = "3CreekMentoring">
<cfif ListFindNoCase(cgi.path_info,"3creekmentoringQA","/")>
<cfif ListFindNoCase(cgi.path_info,"Administration","/")>
<cfset iCFApplicationName = "3CreekMentoringAdminQA" />
<cfelse>
<cfset iCFApplicationName = "3CreekMentoringQA" />
</cfif>
<cfelse>
<cfif ListFindNoCase(cgi.path_info,"Administration","/")>
<cfset iCFApplicationName = "3CreekMentoringAdmin" />
<cfelse>
<cfset iCFApplicationName = "3CreekMentoring" />
</cfif>
</cfif>
Scott
--
-----------------------------------------
Scott Brady
http://www.scottbrady.net/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:196861
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