I'm not sure what you are saying here? The request scope only lasts for one
request. So, the first time you hit Index.cfm, this is what happens:
Application.cfm is process
CFA_ApplicationInitialize is called
This calls cfa_globalsettings which sets up vars in the request scope.
Index.cfm is processed
If index.cfm has code that calls globalsettings, the tag is smart enough to
know it's already been run on that request.
This is intended behaviour, ie, the setting of request crap for each hit and
should not be a bad thing.
By the way, this:
> <cfif isdefined('request')>
will _always_ be true since Request is a scope. It's kind of like doing
IsDefined("Application").
=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
Email : [EMAIL PROTECTED]
ICQ UIN : 3679482
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 14, 2001 5:34 AM
> To: Spectra-Talk
> Subject: Bug in cfa_applicationinitialize / cfa_globalsettings?
>
>
> 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.