Session.close event firing without a

  1. last year

    Lee B

    9 Jan 2019 Testers, Xojo Pro

    Why would a session close event fire, but no session open event?

    We have a web app that responds to handleURL and HandleSpecialURL, but doesn't really to anything with sessions.

    I added a log message in Session.Open and Session.close just to track any connections via a web browser, but I only get the Session.close event fire.


  2. Tobias B

    9 Jan 2019 Testers, Xojo Pro Bern, Switzerland

    Likely this happens if a session could not be started properly. Eg. if you hit the web-app with a browser with JavaScript disabled, or a bot or just using curl from the commandline. In this case the request comes in, a Session is prepared, some content (with the client side framework) is returned but the client would not respond on it, so the session is not Opened. These aborted sessions are then cleaned up after the timeout, like other aborted sessions.

  3. Tim P

    9 Jan 2019 Testers, Xojo Pro Rochester, NY
    Edited last year
    HandleSpecialURL has no Session context, so no Session object gets created. I can't explain why you're seeing a Session.Close event though. The documentation for HandleURL does not have a note about Session context, so you may need to ask someone from Xojo for clarification.

  4. Lee B

    10 Jan 2019 Testers, Xojo Pro

    It could be that Tobias, We use a port check to monitor if the server is running which only checks for connection. Maybe that only causes a close event to clear up the fact that the session was never properly initiated.


or Sign Up to reply!