Have a look at this:

Two directories, app1 and app2.

Two App.cfm files:

App.cfm in app1
<cfapplication name="same name"><!--- In app1 --->

<cfif NOT IsDefined("APPLICATION.myVar")>
        <cfset APPLICATION.myVar = "This is in app1 directory">
</cfif>

App.cfm in app2
<cfapplication name="same name"><!--- In app2 --->

<cfif NOT IsDefined("APPLICATION.myVar")>
        <cfset APPLICATION.myVar = "This is in app2 directory">
</cfif>

Two index files, both with the following inside:

<cfdump var="#APPLICATION#">

Now go to one, then the other. You should see that myVar doesn't change. In
fact, neither will APPLICATION.ApplicationName. Which ever one is run first
will remain till the app times out, server reboot, server unplugged etc...

Adrian

-----Original Message-----
From: Nick Sweeney [mailto:[EMAIL PROTECTED]
Sent: 24 January 2006 14:03
To: CF-Newbie
Subject: RE: Dynamically setting datasource


This causes me to ask a question then:

I have developed a Content Management System (Fat Admin) and I have several
copies running on the same server. In the application.cfm I have:

<cfapplication
        name="BFD_CTMGR"
        sessionmanagement="yes"
        setclientcookies="yes"
        sessiontimeout="#CreateTimeSpan(0, 0, 120, 0)#">

And virtually EVERY site has the same cfapplication name..... Is that going
to create similar problems? What is the danger of doing - or is there?

Thanks,

-Nick




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1581
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to