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.