sessionStartHandler = "Main.onSessionStart",
sessionEndHandler = "Main.onSessionEnd",
<cffunction name="onSessionEnd" returntype="void" output="false">
<cfargument name="event">
<cfargument name="rc">
<cfargument name="prc">
<cfdump var="#cgi#" label="onsessionend">
</cfmail>
</cffunction>
I also tried a function like this where I'm just writing to a log file with this code:
<cffunction name="onSessionEnd" returntype="void" output="false">
<cfargument name="event">
<cfargument name="rc">
<cfargument name="prc">
<cflog text = "Onsessionend" type = "information" application = "yes" file = "LogOnSessionEnd">
</cffunction>
My Application.cfc in the root (session set to 2 minutes for testing)
this.sessionManagement = true;
this.sessionTimeout = createTimeSpan(0,0,2,0);
this.setClientCookies = true;
My expectation would be that I would receive an email or a log file would be generated in the logs directory on the server once the session timeout defined in Application.cfc has expired.