Just to add a detail for the observers:

If Application.cfc and Application.cfm are both present, CF uses the 
CFC and ignores the CFM.

On 7 Jul 2005 at 8:14, Simeon Bateman wrote:

> Yes your Application.cfc will replace your app.cfm file.  That code
> above will need to go into your onrequestStart() method of your
> Application.cfc.  That will allow it to fire at the beginning of the
> request.
> 
> Ray Camden posted and example cfc here
> http://ray.camdenfamily.com/downloads/app.pdf  I use something very
> similair, I just dont actually include the request method.  I prefer
> to let that happen naturally.
> 
> Good Luck,
> 
> sim
> 
> On 7/7/05, Andy Mcshane <[EMAIL PROTECTED]> wrote:
> > Does application.cfc replace my application.cfm in my root folder? My 
> > application.cfm currently only contains the following code;
> > 
> > <cfsilent>
> > <cfif right(cgi.script_name, Len("index.cfm")) NEQ "index.cfm" AND 
> > right(cgi.script_name, 3) NEQ "cfc">
> >  <cflocation url="index.cfm" addtoken="no">
> > </cfif>
> > </cfsilent>
> > 
> > does this need to be transferred to an application.cfc and if so is this 
> > all that I need to do to my fusebox application?
> > 
> > 
> > ________________________________
> > 
> > From: Brian Kotek [mailto:[EMAIL PROTECTED]
> > Sent: Thu 07/07/2005 15:38
> > To: Fusebox
> > Subject: Re: Fusebox4.1 & Application.cfc
> > 
> > 
> > 
> > Not reliably, because the only way to "know" when a session has timed out is
> > to use the onSessionEnd() event in Application.cfc. Just create an array of
> > users onApplicationStart(), add new session counters to the array
> > onSessionStart(), and remove them onSessionEnd().
> > 
> > On 7/7/05, Andy Mcshane <[EMAIL PROTECTED]> wrote:
> > >
> > > What I am hoping to acheive is as accurate as possible method of tracking
> > > how many people, and who, are logged in at any one time, hopefully 
> > > capturing
> > > timed out sessions and being able to remove them from the logged in count.
> > > Can this be done within fusebox alone?
> > >
> > > ________________________________
> > >
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > Sent: Thu 07/07/2005 15:19
> > > To: Fusebox
> > > Subject: Re: Fusebox4.1 & Application.cfc
> > >
> > >
> > >
> > > I certainly don't know of any reason why you couldn't.
> > > Application.cfc basically just sets up some event handlers for the
> > > application, somewhat like a "Super Application.cfm". You could have
> > > the handlers call fuseactions in your application (though even with
> > > an FB app, they could just run independent code).
> > >
> > > - Jeff
> > >
> > > On 5 Jul 2005 at 18:16, Andy Mcshane wrote:
> > >
> > > > Thanks, I was hoping that I would be able to still use the session part
> > > of the cfc without messing up my fusebox app.
> > > >
> > > >
> > >
> > >
> > >
> > >
> > 
> > 
> > 
> > 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:12:6782
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/12
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:12
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.12
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to