-
Bug
-
Resolution: Fixed
-
Normal
-
6.5.7, 7.0.5
-
Security Level: Jimmy
-
None
-
ZK 7.0.7
-
None
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.