I have found that we had cache web server paths checked in the Server Administrator. Now the different sites are running the correct versions of the code, but they are still sharing the applications vars. I cant find anything in the cf admin that could be making this happen.
My application.cfm now sets the app name dynamically: <cfif findnocase("dev",cgi.server_name)> <cfset request.appmapping = "intranet_dev"> <cfelse> <cfset request.appmapping = "intranet"> </cfif> <Cfparam name="request.appmapping" default="intranet"> <cfapplication name="#request.appmapping#" sessionmanagement="Yes" setclientcookies="Yes" sessiontimeout="#CreateTimeSpan(0,0,20,0)#"> and the request.appmapping is returning the correct info. Then in myGlobals.cfm: <!--- only set application variables if not already defined in application scope ---> <cfif NOT IsDefined("application.datasource") or isdefined("attributes.refreshvars")> <cflock type="EXCLUSIVE" timeout="60" scope="application"> <cfif findnocase("dev",cgi.server_name)> <cfset application.datasource="MPlus_dev"> <cfset application.dbusername="sa"> <cfset application.dbuserpwd="191nsh"> <cfelse> <cfset application.datasource="MPlus"> <cfset application.dbusername="sa"> <cfset application.dbuserpwd="191nsh"> </cfif> <cfset application.checkip="1"> <cfset application.nonExclusionList=""> <cfset application.maxRows="20"> </cflock> </cfif> But both applications overwrite the others info when I refreshvars or restart CF services. Please can anyone help me out? I am about to have a breakdown. Duncan On Fri, 14 Jan 2005 14:36:06 +1100, Duncan I Loxton <[EMAIL PROTECTED]> wrote: > 6.1 - I've not heard about this issue. > > On Fri, 14 Jan 2005 02:49:48 -0000, Adrian Lynch > <[EMAIL PROTECTED]> wrote: > > What about the caching paths issue, not sure of it's real name(?). Are you > > on 6.0 or 6.1? > > > > Ade > > > > -----Original Message----- > > From: Duncan I Loxton [mailto:[EMAIL PROTECTED] > > Sent: 14 January 2005 02:44 > > To: CF-Talk > > Subject: Re: application and path problem 2 environments on one machine > > > > Application.cfm Live site: > > > > <cfapplication name="mars" sessionmanagement="Yes" > > setclientcookies="Yes" sessiontimeout="#CreateTimeSpan(0,0,20,0)#"> > > > > Application.cfm dev site: > > <cfapplication name="intranetDEV" sessionmanagement="Yes" > > setclientcookies="Yes" sessiontimeout="#CreateTimeSpan(0,0,20,0)#"> > > -- > > No virus found in this outgoing message. > > Checked by AVG Anti-Virus. > > Version: 7.0.300 / Virus Database: 265.6.11 - Release Date: 12/01/2005 > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190654 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54