Thank you. We will try. It would be great if any example provided for the same
Senthilchettyin ( 2019-05-09 11:38:10 +0800 )editI have another question, i will post as seperate ticket
Senthilchettyin ( 2019-05-09 13:03:54 +0800 )editFirst time here? Check out the FAQ!
Hello
Our client wants to Provide option for each user to maintain their own session time out in minutes. We can store in the Database. But how and where to set that value in ZK ?
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);
Thank you. We will try. It would be great if any example provided for the same
Senthilchettyin ( 2019-05-09 11:38:10 +0800 )editI have another question, i will post as seperate ticket
Senthilchettyin ( 2019-05-09 13:03:54 +0800 )editAsked: 2019-05-07 17:10:46 +0800
Seen: 16 times
Last updated: May 09 '19