<!---
Application.cfc reference

materials for this page were obtained from the following sources:
	http://www.bennadel.com/blog/726-ColdFusion-Application-cfc-Tutorial-And-Application-cfc-Reference.htm
	http://ray.camdenfamily.com/downloads/app.pdf
--->

<cfcomponent displayname="Application" output="false" hint="Handle the application.">

	<!--- set up the application --->
	<cfset this.name 		= "YourApplicationNameHere" />
	<cfset this.applicationTimeout	= createTimeSpan(0,2,0,0) />		<!--- defaults to cf administrator value --->
	<cfset this.clientManagement 	= true|false />				<!--- defaults to cf administrator value --->
	<cfset this.clientStorage 	= cookie|registry|datasourceName />	<!--- defaults to cf administrator value --->
	<cfset this.loginStorage 	= cookie|session />
	<cfset this.sessionManagement 	= true|false />
	<cfset this.sessionTimeout 	= createTimeSpan(0,0,20,0) />		<!--- defaults to cf administrator value --->
	<cfset this.setClientCookies 	= true|false />
	<cfset this.setDomainCookies 	= true|false />
	<cfset this.scriptProtect 	= none|all|list />			<!--- defaults to cf administrator value --->

	<!--- define the page request properties --->
	<cfsetting requesttimeout="20" showdebugoutput="false" enablecfoutputonly="false" />

	<cffunction name="onApplicationStart" access="public" returntype="boolean" output="false" hint="fires when the application is first created.">
	</cffunction>

	<cffunction name="onSessionStart" access="public" returntype="void" output="false" hint="fires when the session is first created.">
	</cffunction>

	<cffunction name="onRequestStart" access="public" returntype="boolean" output="false" hint="fires at first part of page processing.">
	</cffunction>

	<cffunction name="onRequest" access="public" returntype="void" output="true" hint="fires after pre page processing is complete.">
	</cffunction>

	<cffunction name="onRequestEnd" access="public" returntype="void" output="true" hint="fires after the page processing is complete.">
	</cffunction>

	<cffunction name="onSessionEnd" access="public" returntype="void" output="false" hint="fires when the session is terminated.">
	</cffunction>

	<cffunction name="onApplicationEnd" access="public" returntype="void" output="false" hint="fires when the application is terminated.">
	</cffunction>

	<cffunction name="onError" access="public" returntype="void" output="true" hint="fires when an exception occures that is not caught by a try/catch.">
	</cffunction>

</cfcomponent>