Quit (PrepareSession-ed but not Open-ed) WebSession

Hello!

I am having an issue with numerous orphaned sessions initiated by CURL with --head option. It seems that CURL produces Xojo WebSessions that kicks PrepareSession event, but not Open event. I can list these orphaned WebSessions with app.SessionAtIndex(x), but they do not die with Session.Quit.

Am I doing something wrong?

Thanks.

They should eventually die off, probably after three minutes. That said, the Session cleanup mechanism has gotten some attention in the latest build cycle. Since you are a beta tester, please test your project in the latest beta.

FWIW, Session.Open will only fire for clients which have a javascript engine (like a browser) while PrepareSession fires before the first volley of data is sent to the client.