Application.cfc

From CEW

Jump to: navigation, search

Application.cfc was introduced with ColdFusion MX 7 as an equivalent/expansion of the existing Application.cfm and OnRequestEnd.cfm scripts. It is supported also since Railo 1.1 and BlueDragon 6.2.


Supported by: Image:ColdFusion.png Image:BlueDragon.png Image:Railo.png

[edit] Standard Functions

The initial Application.cfc contained the following functions:

  • onApplicationStart
  • onApplicationEnd
  • onSessionStart
  • onSessionEnd
  • onRequestStart
  • onRequest
  • onRequestEnd
  • onError


[edit] Other Functions

The following functions have been added by later engine releases.

[edit] onMissingTemplate

This function was added in ColdFusion 8, Railo 2 and BlueDragon 7. It is triggered when the requested script does not exist.

Supported by: Image:ColdFusion-8.png Image:BlueDragon-7.0.png Image:Railo-2.0.png

[edit] onClientStart

This function is currently unique to BlueDragon 7. It is equivalent to onSessionStart, but for the Client scope.

Supported by: Image:BlueDragon-7.0.png

Personal tools