Revision history [back]

click to hide/show revision 1
initial version

answered 2019-05-09 09:30:29 +0800

cor3000 gravatar image cor3000

ZK Team

You can set the session timeout as in any standard servlet application.

HttpSession.setMaxInactiveInterval or call the delegating method from ZK's Session object.

https://github.com/zkoss/zk/blob/v8.6.1/zk/src/org/zkoss/zk/ui/http/SimpleSession.java#L361

You can set the session timeout as in any standard servlet application.

HttpSession.setMaxInactiveInterval or call the delegating method from ZK's Session object.

https://www.zkoss.org/javadoc/latest/zk/org/zkoss/zk/ui/Session.html#setMaxInactiveInterval-int-

https://github.com/zkoss/zk/blob/v8.6.1/zk/src/org/zkoss/zk/ui/http/SimpleSession.java#L361

You can set the session timeout as in any standard servlet application.

HttpSession.setMaxInactiveInterval HttpSession.setMaxInactiveInterval or call the delegating method from ZK's Session object.

https://www.zkoss.org/javadoc/latest/zk/org/zkoss/zk/ui/Session.html#setMaxInactiveInterval-int-

https://github.com/zkoss/zk/blob/v8.6.1/zk/src/org/zkoss/zk/ui/http/SimpleSession.java#L361

You can set the session timeout as in any standard servlet application.

HttpSession.setMaxInactiveInterval or call the delegating method from ZK's Session object.

https://www.zkoss.org/javadoc/latest/zk/org/zkoss/zk/ui/Session.html#setMaxInactiveInterval-int-

https://github.com/zkoss/zk/blob/v8.6.1/zk/src/org/zkoss/zk/ui/http/SimpleSession.java#L361

UPDATE:

here an example:

//set the current user's session timeout to 5 minutes
Sessions.getCurrent().setMaxInactiveInterval(300);
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More