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

Automatic session timeout redirects unreliable with websockets enabled

XMLWordPrintable

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

      Steps to Reproduce

      simple test zul

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

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

      	<session-config>
      		<device-type>ajax</device-type>
      		<timeout-uri>/test.zul</timeout-uri>
      		<automatic-timeout>true</automatic-timeout>
      		<session-timeout>10</session-timeout>
      	</session-config>
      

      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
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: