[Coldbox 4.3.0] Can't get onSessionEnd to fire

Hi,

I’ve spent a few hours today trying to get onSessionEnd to fire by letting the session timeout, but it never seems to execute. I have this code in my Coldbox.cfc

sessionStartHandler = “Main.onSessionStart”,
sessionEndHandler = “Main.onSessionEnd”,

I have this in Main.cfc

I also tried a function like this where I’m just writing to a log file with this code:

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.

Is there anything in the logs to indicate an error

Luis Majano
CEO
Ortus Solutions, Corp

P/F: 1-888-557-8057

Well, today it is working. I removed the other code I had and just left the in there and I’m getting emails now so it is firing. Maybe you did something magically to make it work, either way thanks for checking it. I did scour the logs, but could not see anything so I assume maybe there was some issue with the original code I had in onSessionEnd()