-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, i use the code in zk.xml
<session-config> <session-timeout>600</session-timeout> </session-config>
The number is in seconds, when i put 2 , session expires in two seconds , okay , in 60 expires in 1 minute but in 600 , expires 10 hours after :S (wtf xd)I obtain these values with logger in the desktop cleanup
mmm i use zk 5.0.4 my mistake ...
interesting, what is you test case for this? will you double test again, how about set to 300 first(you could have a cup of java coffee)? I don't think 600 will go to 10 hours.
Hi, i tried with zk pe 5.0.7.1 and fail. My test case is:
1. Log in the application
2. Go to te bathroom
3. The application logout and i see the loggin page. Zk.xml
<timeout-uri>/login.zul</timeout-uri>
I have a desktop clean up listener, before the desktop is destroyed , i print in the console "Logout" with the time.
Pd: i tried with ten hours because the app runing in the evening :P
Today i tried with 7200 seconds (two hours), and logout after 30 min.
mmmm
Mi zk.xml
<session-config> <device-type>ajax</device-type> <automatic-timeout/> <!-- the same as <automatic-timeout>true</automatic-timeout> --> <timeout-uri>/login.zul</timeout-uri> <session-timeout>7200</session-timeout> <timer-keep-alive>false</timer-keep-alive> <max-desktops-per-session>15</max-desktops-per-session> <max-requests-per-session>6</max-requests-per-session> <max-pushes-per-session>6</max-pushes-per-session> </session-config>
Asked: 2011-07-05 11:39:52 +0800
Seen: 208 times
Last updated: Jul 06 '11