How to set session timeout dinamically in java web applications?

Posted by Jonathas Carrijo on Stack Overflow See other posts from Stack Overflow or by Jonathas Carrijo
Published on 2010-06-02T19:04:12Z Indexed on 2010/06/02 19:24 UTC
Read the original article Hit count: 160

Filed under:
|
|
|

Hi,

I need to give my user a web interface to change the session timeout interval. So, each installation of the application might have different timeouts for their sessions, but they web.xml cannot be different.

Is there a way to set the session timeout programatically, so that I could use, say, ServletContextListener.contextInitialized() to read the configured interval and set it upon application startup?

Thanks a lot.

© Stack Overflow or respective owner

Related posts about java

Related posts about jsp