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

zkcomet prevents sessions from expiring

    XMLWordPrintable

    Details

    • gh.sprint.customfield.default.name:
      ZK 9.5.1 S1

      Description

      Steps to Reproduce

      enable /zkcomet server push (servlet 3)

      <zk>
          <zscript><![CDATA[
              desktop.enableServerPush(true);
          ]]></zscript>
          <button onClick=""/>
      </zk>
      

      configure an ajax timeout shorter than session timeout

      e.g.:

      	<session-config>
      		<session-timeout>10</session-timeout>
      		<timeout-message>Session Timeout: "reload" the page or "cancel" to copy your unsaved data first.</timeout-message>
      	</session-config>
      	<preference>
      		<name>CometServerPush.ajax.timeout</name>
      		<value>4000</value>
      	</preference>
      	<preference>
      		<name>CometServerPush.retry.delay</name>
      		<value>1000</value>
      	</preference>
      

      wait until the session should be timed out (e.g. 20 seconds)
      click the button

      Current Result

      session didn't time out, click still succeeds

      Expected Result

      session should be timed out due to user inactivity

      Debug Information

      the request to /zkcomet extends the servlet session
      it doesn't use the same mechanism used in DHtmlUpdateServlet distinquishing between user and non user requests (e.g onTimer/dummy don't extend the session)

      Workaround

        Attachments

          Activity

            People

            Assignee:
            DevChu DevChu
            Reporter:
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: