Clarke, yup, should be able to just extend the root Application.cfc with the
one(s) below to get all that 'inheritance' goodness.  One thing though is a
little issue with CF in this regard.  You can't extend the root
Applicaiton.cfc do to some pathing thing.  To get around this though you can
create a proxy.  You can read all about it on that CF super hero's blog
http://corfield.org/blog/index.cfm/do/blog.entry/entry/Extending_Your_Root_Applicationcfc

Also, Ray Camden has a great write up using this Application.cfc animal
http://www.coldfusionjedi.com/index.cfm/2007/11/9/Applicationcfc-Methods-and-Example-Uses

DK


On Fri, May 23, 2008 at 6:53 PM, Clarke Bishop <[EMAIL PROTECTED]>
wrote:

> In my webroot, I am trying to setup a secure directory where a login is
> required. I got some good ideas the other day from Doug, but I'm still
> having trouble.
>
> Here's what I'm trying to do
>
> /webroot/
>   accessibleStuff.cfm
>   /secure/
>      stuffThatRequiresLogin.cfm
>
> So, anything in the secure directory requires a login.
>
> Now, I've got an Application.cfc in my webroot. All, I have to do, is put
> another Application.cfc in the secure directory and check for login.
>
> Problem 1.
>
> CF only processes one Application.cfc. So, when I add the second
> Application.cfc, all my session initialization, error handling, etc. in
> webroot.Application doesn't run.
>
> I think the answer to this is to make the second Application.cfc extend
> webroot.Application, but maybe there's a better way.
>
> Problem 2.
>
> When I did have the second Application.cfc extend webroot.Application, cfm
> pages in the secure directory don't fire the OnSessionStart event located
> in
> webroot.Application.
>
> My plan was to test the value of SESSION.IsLoggedIn, but it's failing
> because IsLoggedIn did not get initialized by OnSessionStart.
>
> What am I missing? Is there a better way to do this?
>
> Thanks,
>
>    Clarke
>
>
>
>
>
> -------------------------------------------------------------
> To unsubscribe from this list, manage your profile @
> http://www.acfug.org?fa=login.edituserform
>
> For more info, see http://www.acfug.org/mailinglists
> Archive @ http://www.mail-archive.com/discussion%40acfug.org/
> List hosted by http://www.fusionlink.com
> -------------------------------------------------------------
>
>
>
>


-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?



-------------------------------------------------------------
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------

Reply via email to