-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I'm using ZK with Spring including Spring Security. And my zk.xml is:
<?xml version="1.0" encoding="UTF-8"?>
<zk>
<session-config>
<timer-keep-alive>false</timer-keep-alive>
<automatic-timeout>true</automatic-timeout>
<device-type>ajax</device-type>
<timeout-uri>/idle_timeout</timeout-uri>
</session-config>
</zk>
But I found that ZK redirects to timeout-uri even from login page (/login). So how I can to configure ZK to not check session timeout on login-page?
you can disable automatic timeout for specific pages using the ?page directive with automaticTimeout="false"
But be aware if your login page depends on ZK components (native will work) for the login it will run into timeouts just like any other page.
(forget about the native elements I mentioned, if you don't know them yet you're likely not using them)
To be clear: EVERY zk page's life time is limited by the timeout configured at server side. The question is how you deal with it. You can:
using the page-directive will only switch between option 1 and option 2. If you want to keep the page alive (option 3) you can use a <timer> component with the keep-alive configuration option.
Asked: 2016-12-12 15:41:11 +0800
Seen: 52 times
Last updated: Dec 13 '16
to @cor3000: I already tried ?page directive, but it still times out. On page I use these zul objects: window, zscript, groupbox, form, button, grid, textbox. I don't know what means 'native'.
ivzel ( 2016-12-13 09:19:52 +0800 )edit