<!---
 Filename: Application.cfc
 Created by: Raymond Camden (ray@camdenfamily.com)
 Handles application events.
--->

<cfcomponent output="false">

  <cfset THIS.name="OrangeWhipSite_c20">
  <cfset THIS.sessionManagement=true>
  <cfset this.sessiontimeout = createtimespan(0,0,0,10)>
  
  <cffunction name="onSessionStart" returnType="void">
    <cfset SESSION.created = now()>
  </cffunction>
  
  <cffunction name="onSessionEnd" returnType="void">
    <cfargument name="theSession" type="struct" required="true">
    <cfset var duration = dateDiff("s",arguments.theSession.created,now())>
    <cflog file="#THIS.name#" text="Session lasted for #duration# seconds.">
  </cffunction>
  
</cfcomponent>