I have a call to cfa_applicationinitialize in my application's application.cfm
template.

cfa_applicationinitialize calls cfa_globalsettings to set the request scope
(and other things). Within cfa_globalsettings there is a check for request.cfa.bInited
and, if it is defined, cfa_globalsettings is immediately exitted.

Unfortunately, request.cfa.bInited, along with just about everything in the
request scope disappears before cfa_applicationinitialize is called a second
(and subsequent time). This means that the request scope is set all over again.
As the original call is in application.cfm, this work is being done on every
call to every page.

I have enclosed a snippet of code I've put into cfa_globalsettings to prove
this.

-------------------------------------------------------------------------
<cfif isdefined('request')>
    <cfoutput>I am in cfa_globalsettings. Here is a dump of request</cfoutput><cfa_dump
var="#request#">
</cfif>
<!--- tfl 4/23/99: don't reset everything if it's already been called --->
<cfif isDefined("request.cfa.bInited")><cfoutput>bInited is set so I am 
exiting</cfoutput>

     <cfsetting enableCFOutputOnly="FALSE">
     <cfexit>
</cfif>




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to