Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress Servlet Development Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

4.12 Configure Sessions

The session-config element defines characteristics of the sessions the servlet container creates. A session-config element contains a session-timeout element. The session-timeout element sets the default timeout, in minutes, for sessions created by servlets within this context. The container deletes sessions that remain inactive longer than the timeout period.

For example, the web.xml fragment below configures the container to set a 15 minute timeout on sessions created by servlets within the context:

Note that servlets can reset the timeout period for the context through the rwsf::ServletContext object that represents the context. Servlets can also change the timeout on individual sessions as described in Section 7.5.



Previous fileTop of DocumentContentsIndex pageNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo are registered trademarks of Rogue Wave Software, and HydraExpress is a trademark of Rogue Wave Software. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.