View comments | RSS feed

Method summary

The following table briefly describes the application event methods that you can implement in Application.CFC:

Method name Method runs when

onApplicationEnd

The application ends: the application times out, or the server is stopped

onApplicationStart

The application first starts: the first request for a page is processed or the first CFC method is invoked by an event gateway instance, or a web services or Macromedia Flash Remoting CFC.

onError

An exception occurs that is not caught by a try/catch block.

onRequest

The onRequestStart method finishes. (This method can filter request contents.)

onRequestEnd

All pages in the request have been processed:

onRequestStart

A request starts

onSessionEnd

A session ends

onSessionStart

A session starts

All parameters to these methods are positional. You can use any names for these parameters.

When a request executes, ColdFusion MX runs the CFC methods in the following order:

  1. onApplicationStart (if not run before for this application)
  2. onSessionStart (if not run before for this session)
  3. onRequestStart
  4. onRequest
  5. onRequestEnd

The onApplicationEnd, onSessionEnd, and onError CFCs are triggered by specific events.


ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | KnowledgeBase | Bug Reporting

Version 7

Comments


barry.b said on Feb 12, 2005 at 5:07 AM :
>> The onApplicationEnd, onSessionEnd, and onError CFCs are triggered by specific events.

... and onError [methods]...

 

RSS feed | Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/7/htmldocs/00000694.htm