Byron, the ApplicationProxy.cfc needs to be in the root directory along
with the main Application.cfc. When you extend a CFC, CF will first look in
the same directory to see if that CFC exist. If it doesn't CF will start
looking for the CFC from the application root down. So by simply adding
extends="ApplicationProxy" to the Application.cfc within the /cfc
directory, CF will find the ApplicationProxy.cfc in the root, which in turn
finds the Application.cfc in the root. No mappings are needed.

On Wed, Jan 28, 2015 at 3:21 PM, Byron Mann <byronos...@gmail.com> wrote:

>
> On Wed, Jan 28, 2015 at 1:57 PM, Robert Harrison <rharri...@aimg.com>
> wrote:
>
> >
> > > try adding an Application.cfc in the root physical directory
> >
> > I don't that that will work. It would still be a separate application
> pool,
> > and I think you need the CFID and CFTOKEN cookies to have session vars.
> >
>
>
>
> Did a simple test on CF10 and CF8 and this does seem to work.  The only
> identifier for an application is the application name that I'm aware of, so
> I would guess the first Application.cfc to be called would be the one to
> initialize the application.  Subsequent calls would set the session and
> application timeouts, thus setting them the same would be a good idea.
>
> That being said, Dean's proxy suggestion is probably best, since you would
> probably want the code to run from either application.cfc.
>
> I thought the directory structure might be like this. The proxy would still
> work, but would probably just need a cfmapping to the app root so the
> /cfc/application.cfc could find the /app/applicationproxy.cfc.
>
> /cfc
> /app
> /app/application.cfc
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360036
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to