Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3916

Automatic session timeout redirects unreliable with websockets enabled


    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 8.5.2,
    • ZK Client Engine
    • Security Level: Jimmy
    • None
    • Reproduced with Tomcat 8.5.29

      Steps to Reproduce

      simple test zul

      	<label value="Session: ${session.nativeSession.id}, Desktop: ${desktop.id}"></label>

      enable automatic-session-timeout with a timeout-uri (configuring short timeout and redirect-loop make debugging easier)


      Current Result

      The automatic redirect doesn't always occur. Sometimes the page remains unchanged

      Expected Result

      Reliable redirect after timeout

      Debug Info

      As seen in automatic-session-timeout-with-ws.png the last WS request didn't disconnect after 10 seconds. Instead of a "/zkau" request containing the "dummy", the "dummy" was sent to the ws endpoint. ->Then session timeout handling doesnt happen

            wenninghsu wenninghsu
            cor3000 cor3000
            0 Vote for this issue
            2 Start watching this issue