O'Reilly logo

Railo 3 Beginner’s Guide by Mark Drew

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Application events

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required