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

Setting automatic-timeout to true didn't redirect to timeout page based on session timeout time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.0.6
    • 6.5.7, 7.0.5
    • ZK Client Engine
    • Security Level: Jimmy
    • None
    • ZK 7.0.7

      The session configuration in zk.xml :

      <session-config>
      	<device-type>ajax</device-type>
      	<session-timeout>20</session-timeout>
      	<timer-keep-alive>false</timer-keep-alive>
      	<automatic-timeout>true</automatic-timeout>
      	<timeout-uri>/timeout.zul</timeout-uri>
      </session-config>
      

      The test zul page contains timer component:

      <zk>
      	Test automatic-timeout with timer component
      	<zscript><![CDATA[
      	void show() {
      		System.out.println("Timer");
      	}
      	]]></zscript>
      	<timer id="timer" delay="1000" repeats="true" onTimer="show()" onCreate="self.start()" />
      </zk>
      

      The excepted result is it should redirect to timeout.zul page around 25 seconds. But the actual result is the redirection happens around 44 seconds.

      When timer-keep-alive is set to false, we shouldn't reset timeout.

            jumperchen jumperchen
            vincentjian vincentjian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h