ColdBox Forums Notification: Post to Ending Session on Browser Close

Title: RE: Ending Session on Browser Close
Thread: Ending Session on Browser Close
Forum: Need Help?
Conference: ColdBox
User: tb Well, I have tried it in the Application.cfc onApplicationEnd function, but it
doesnt seem to get hit when the browser is closed. If this is where you suggest
putting it, then it may be that my code needs some tweaking. Should that
function be hit when a user closes the browser?
http://www.luismajano.com/forums/index.cfm?event=ehMessages.dspMessages&threadid=F93CBB92-FF65-CEF6-656FC3FA37CDD32E

OnApplicationEnd is hit only when the Application times out. You can close the browser and the session can even time out long before the Application actually times out.

As luis said, you will probably want to put that code in the onRequestStart method.

-Aaron