Paul Ihrig wrote:
> if i am cfincluding the page from another page out side the directory
> with the app.cfc and other cfc
> it craps out on me..

My first thought is that when you include it from outside the main 
directory with the Application.cfc, it causes the code to run outside of 
the define "Application' and thus has no access to the shared memory.  
This is a prime example of why accession data outside of a component 
with code like #session.myShoppingCart# is considered a bad OOP 
practice.  The best practice advice to to always pass the required data 
into the component as arguments, don't require the component to be aware 
of the environment outside of itself.

There is a complex relationship between the name of an Application as 
defined by the "name: property of the <cfapplication...> tag OR the 
'this.applicationName" property of an Application.cfc file.  Any code 
that does not run under the same name does not share the same 
Application or Session memory states.  When one starts using components, 
it is common to put them outside the web root where the code does not 
run under the defined application name and thus does not share the memory.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:324537
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