I think that having multiple applications still may not be the most ideal
solution here, depending on whether all these directories do actually come
under the definition of standalone applications. If they don't, using a
single Application.cfc at the root, you could decide whether or not to check
the logged in session based on the requested template using the onRequest()
method. Something like:

...
<cffunction name="onRequest" output="true" returnType="void"
access="public">
        <cfargument name="targetPage" type="String" required="true" />

        <cfset doSecurityCheck() />

        <cfinclude template="#arguments.targetPage#" />
</cffunction>

<cffunction name="doSecurityCheck" output="true" returnType="void"
access="private">
        <cfargument name="targetPage" type="String" required="true" />

        <!--- code to decide whether or not to check security based on the
requested page --->
        <!--- code to do the security check and figure out what to do when
not secure --->
</cffunction>
...

Faced with a massive legacy application, I'd look to consolidating code,
however slowly, rather than creating new code that adds to the disarray.

HTH

Dom

2009/10/20 Brian Bradley <[email protected]>

>
> We have been using windows iis, etc. since 1999 and are trying to take more
> control since we now have so many bs membership types.  It is a crazy
> project that was just handed to me.  I think that I am just going to have to
> bite the bullet and use cookies to house the information and pass it on
> since there are going to be so many active applications.  Was hoping somehow
> there was something I was missing about the different variable scopes.
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327355
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to