0

Issue with session timeout

asked 2011-07-05 11:39:52 +0800

zippy gravatar image zippy
504 1 2

updated 2011-07-05 17:37:43 +0800

Hi, i use the code in zk.xml

<session-config>
		<session-timeout>600</session-timeout>
	</session-config>

Doc

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 ...

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-07-05 20:47:49 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

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.

link publish delete flag offensive edit

answered 2011-07-06 09:23:12 +0800

zippy gravatar image zippy
504 1 2

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>

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: 2011-07-05 11:39:52 +0800

Seen: 208 times

Last updated: Jul 06 '11

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