0

Timeout

asked 2010-04-11 07:55:36 +0800

andij62 gravatar image andij62
315 1 7

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

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2010-04-12 02:32:37 +0800

SimonPai gravatar image SimonPai
1696 1

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

link publish delete flag offensive edit

answered 2010-04-12 08:30:49 +0800

andij62 gravatar image andij62
315 1 7

Hi Simon,

thanks for your answer. Why the session is timed out although the timer read every 20 sec new Data from DB?

Regards
Andi

link publish delete flag offensive edit

answered 2010-04-12 20:28:53 +0800

SimonPai gravatar image SimonPai
1696 1

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

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-04-11 07:55:36 +0800

Seen: 271 times

Last updated: Apr 12 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More