<cfcomponent
output="false"
hint="I set up the application and define event handlers.">
<cfset THIS.Name = "SoftReferenceDemo" />
<cfset THIS.ApplicationTimeout = CreateTimeSpan( 0, 0, 5, 0 ) />
<cfsetting
showdebugoutput="false"
requesttimeout="10"
/>
<cffunction
name="OnApplicationStart"
access="public"
returntype="boolean"
output="false"
hint="I run when the application starts up. If I return false, the application will not initialize.">
<cfset StructClear( APPLICATION ) />
<cfset APPLICATION.Log = [] />
<cfreturn true />
</cffunction>
<cffunction
name="OnRequestStart"
access="public"
returntype="boolean"
output="false"
hint="I run before the requested template gets processed. If I return false, the page will not load.">
<cfargument
name="Page"
type="string"
required="true"
hint="I am the template requested by the user."
/>
<cfif StructKeyExists( URL, "reset" )>
<cfset THIS.OnApplicationStart() />
</cfif>
<cfreturn true />
</cffunction>
</cfcomponent>