-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello all,
i have a problem with timeout. I set a timer (20 sec) to read data from db to show it in a grid. It works fine but after 30min the session timed out while no user-action (but timer-action!) is available. What can i do that the session is available after the user close the window?
best regards
Andi
Hi Andi,
Since HTTP protocol does not force browser to send signal upon closing browser windows, there's no way (on the server side) to tell if a user just closes his browser and leaves.
This is, unfortunately, a restriction on every kind of web app development.
ZK components will simply stay alive until the session is timed out.
Is this what you want to ask?
Regards,
Simon
Hi Andi,
Now I see your concern. By default, ZK does not let Timer event intervene timeout mechanism. However, you can keep session alive by configuring your zk.xml.
<session-config> <timer-keep-alive>true</timer-keep-alive> </session-config>
See this reference. It's at the bottom of the page, the "The timer-keep-alive Element" section.
Regards,
Simon
Asked: 2010-04-11 07:55:36 +0800
Seen: 271 times
Last updated: Apr 12 '10