WebSession.Quit
From Xojo Documentation
Method
Ends the session.
Notes
WebSession.Quit sends a message to the browser to close and tells the WebSession object that it has expired. There is still a short period of time where the session will be alive though, at least until the next time the framework looks for expired sessions.
WebSession.Quit does not end the session if called from the WebSession.Open event.