On Apr 12, 2005 2:08 PM, Sean Corfield <[EMAIL PROTECTED]> wrote:
> In your root directory, add a CFC called ApplicationProxy.cfc that
> extends Application:
I've just tested this and it works. Here's my code:
/Application.cfc:
<cfcomponent name="Application">
<cfset this.name = "cf7app" />
<cfset this.sessionmanagement = true />
</cfcomponent>
/ApplicationProxy.cfc:
<cfcomponent name="ApplicationProxy" extends="Application">
</cfcomponent>
/app/Application.cfc:
<cfcomponent name="Application" extends="ApplicationProxy">
<cffunction name="onSessionStart">
<cfoutput><p>app.Application.onSessionStart()</p></cfoutput>
<cfset session.counter = 0 />
</cffunction>
<cffunction name="onRequestStart">
<cfoutput><p>app.Application.onRequestStart()</p></cfoutput>
<cfdump label="application" var="#application#"/>
</cffunction>
</cfcomponent>
/app/index.cfm:
<cfoutput><p>app/index.cfm</p></cfoutput>
<cfset session.counter = session.counter + 1 />
<cfoutput><p>session.counter = #session.counter#</p></cfoutput>
--
Sean A Corfield -- http://corfield.org/
Team Fusebox -- http://fusebox.org/
Got Gmail? -- I have 50, yes 50, invites to give away!
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]