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

4.11 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

©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.