I'm not sure I get you. Are you saying that when you run /index.cfm,
variables aren't set, but when you do /index.cfm?kill=1, they are? How
are you testing to see if the variables are there?

On 8/25/06, Charles Sheehan-Miles <[EMAIL PROTECTED]> wrote:
> If I start to get annoying with questions just pound me on the head.
>
> I have application.cfc, with the following beginning:
>
> <cfcomponent output="false">
>
> <!--- App Start --->
>
>  <cffunction name="onApplicationStart" returntype="boolean" output="false">
>         <cfquery name="rsOrganization" datasource="hosting">
>         select top 1 * from rsOrganization where OrgServername =
> '#CGI.server_name#'
>         </cfquery>
>
>
> <cfset this.name = "#rsorganization.orgname#_root">
>         <cfset this.applicationTimeOut = createTimeSpan(0,2,0,0)>
>         <cfset this.ClientManagement = true>
>         <cfset this.clientStorage = "hostingClientVariables">
>         <cfset this.loginstorage = "session">
>         <cfset this.sessionmanagement = true>
>         <cfset this.sessiontimeout = createTimeSpan(0,0,20,0)>
>         <cfset this.setClientCookies = true>
>         <cfset this.setDomainCookies = true>
>         <cfset this.scriptprotect = true>
>
> In OnRequest start, I have code to kill the app as follows:
>
> <!--- LOOK FOR THE URL KILL ARGUMENT AND KILL APP IF PRESENT --->
>             <CFIF ISDEFINED("URL.KILL")>
>                 <CFSET kill = OnApplicationStart()>
>             </CFIF>
>
> My objective was to
>     a) determine the app name based on the host header name (thus the query
> in onApplicationStart).
>     b) Set application level variables from that query, including the
> application name
>
> Right now there¹s only two files ‹ app.cfc and index.cfm.  OnRequestEnd does
> a cfdump of different scopes so I can see whats happening.
> When I execute index.cfm, the cfdump of the application scope shows that
> none of the above options were actually set.  It does not seem to be running
> anything in the onAppStart event. However, if I run the query with the ?kill
> switch it clearly runs it, because the cfdump shows all of the above vars
> set correctly.  What am I doing wrong?
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251017
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to