Session close event

If I use Session.quit to log out of a session the session.close event is not fired, but if I use showurl(somewhere) to redirect out of the app it does. Is this expected? I like to use the close event to close database connections etc. and session.quit seems the right way to deal with exiting.

This is related to that other problem you reported.

By the way, you’re not keeping any hard references to the sessions in your code,a are you? That certainly could cause this behavior if they didn’t get released.

I guess it is related in that I’m attempting a work around.

My test project is very simple, two buttons, one that quits the other uses showurl.