Apart from being able to manage settings of your application in the
Application.cfc, you can also manage different parts of the Application, Session, Request, and Error lifecycle. To do this, we can create functions within the
Application.cfc that are triggered at different points.
There are a number of methods that you can implement in
Application.cfc. They are simply functions. For example, the
onApplicationStart() method will be executed if the application hasn't started up:
<cfcomponent> <cfset this.name = "RememberName"> <cfset this.sessionmanagement = true> <cffunction name="onApplicationStart" returnType="boolean" output="false"> <cfreturn true> </cffunction> </cfcomponent>
Before trying out some of these functions, let's ...