<cfcomponent
output="false"
hint="Handle the application configuration.">
<cfset THIS.Name = "TimeoutTest" />
<cfset THIS.ApplicationTimeout = CreateTimeSpan( 0, 0, 1, 0 ) />
<cfset THIS.SessionManagement = true />
<cfset THIS.SessionTimeout = CreateTimeSpan( 0, 0, 0, 2 ) />
<cfsetting
showdebugoutput="false"
/>
<cffunction
name="OnSessionStart"
access="public"
returntype="boolean"
output="false"
hint="Fires when the user's session begins.">
<cfset SESSION.DateCreated = Now() />
<cfreturn true />
</cffunction>
<cffunction
name="OnSessionEnd"
access="public"
returntype="void"
output="false"
hint="Fires when the session is terminated.">
<cfargument
name="Session"
type="struct"
required="true"
hint="The expired session scope."
/>
<cfset ARGUMENTS.Session.DateEnded = Now() />
<cfreturn />
</cffunction>
</cfcomponent>