I need a reality check - and hopefully an explanation (if my reality is wrong).
The way the CF application framework evaluates things is this (my understanding) - re
The ColdFusion Application.cfc documentation has this tidbit of knowledge:
When a request executes, ColdFusion runs the CFC methods in the following order:
- onApplicationStart (if not run before for this application)
- onSessionStart (if not run before for this session)
- onRequestStart
- onRequest/onCFCRequest
- onRequestEnd
The onApplicationEnd, onSessionEnd, and onError CFCs are triggered by specific events.
The overall request order has (at least) two more steps.
0: execute all code in
cfcomponent
that isn't in acffunction
0.5: run the equivalent of thecfapplication
tag for creating the Application
As such the answers to your questions are:
this
scope, but will not take effect in step 0.5.