Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Normal
-
Resolution: Fixed
-
Affects Version/s: 6.5.7, 7.0.5
-
Fix Version/s: 7.0.6
-
Component/s: ZK Client Engine
-
Security Level: Jimmy
-
Labels:None
-
gh.sprint.customfield.default.name:ZK 7.0.7
Description
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.