You don't need unique application names. Lets say you have one site and at the top of it you have <cfapplication name="myApp"> then you set some application variables somewhere in there. Then, you have another site on the same server, you can put <cfapplication name="myApp"> in that site and it will have access to the variables that are set in the first site. However, keep in mind, you want to be careful about multiple sites setting and getting variables to make sure that you're not relying on a variable that may not have been set. Especially when the server is rebooted or something like that. Many people have the misconception that the <cfapplication> tag has to go in the Application.cfm but that's not true. It can go at the top of each individual page and you could leave out the Application.cfm altogether. The Application.cfm just makes it easier because it gets called everytime.
John Burns Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | Web Developer -----Original Message----- From: jonese [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 24, 2006 10:59 AM To: CF-Talk Subject: Re: Scope Woes & Virtual Directories right but how can we do this and still maintain the fact that these files are shared among 50 other sites, with 50 unique application names? On 1/24/06, Burns, John D <[EMAIL PROTECTED]> wrote: > It depends on the scope you're using. If you're talking application > and session variables, you need <cfapplication> to define that these > pages are part of the application, thus allowing it to access the > scoped variables. > > > John Burns > Certified Advanced ColdFusion MX Developer Wyle Laboratories, Inc. | > Web Developer > > > -----Original Message----- > From: jonese [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 24, 2006 9:59 AM > To: CF-Talk > Subject: Scope Woes & Virtual Directories > > Ok here's the scenario. > > We have 50 sites on a server using our CMS. > Each of these sites has an IIS virtual Directory called global. > global is a mapped directory in CF Admin. > > The problem we are having is when a person referances > http://theresite.com/global/ticket/index.cfm the code doesn't have > access to many of the scoped variables. > > Any ideas how we can get global to see all the scoped variables? > > jonese > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230329 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