Configuring Session Timeout in Apache Tomcat

Configuring Session Timeout in Apache Tomcat

The session timeout is the maximum length of time that Tomcat will retain the information pertaining to a user's session, in the absence of any user activity. This value is configurable per application as follows:

Open the web.xml file of your Web project. Add the following XML element:

     
<listener>
<listener-class>
com.adcaustin.WebClient.servletproxy.WebSessionListener
</listener-class>
</listener>
<session-config>
<session-timeout>30</session-timeout>
</session-config>

The code above will set the session to time out in 30 minutes. Save changes.

Open WebClient.properties and find webclient.entry.timeout.
Specify the name of the function that you want to display when the session is timed out.


    • Related Articles

    • How to Terminate a WebClient Session Via a Source Code

      Create a source code object called “CloseSession” and add this code: javax.servlet.http.HttpServletRequest req =  (javax.servlet.http.HttpServletRequest) getApp().getFromUserStorage("javax.servlet.http.HttpServletRequest" ); if (req != null) { ...
    • Installation Requirements

      Eclipse IDE for Java EE Developers 3.6 (Helios) or higher Eclipse IDE CM WebClient 1.8.0 or higher CM WebClient CM WebClient 1.8.0 builder plugin or higher CM WebClient PlexBuild project CM WebClient CM WebClient 6.0 Group Model (can be upgraded) CM ...
    • Deploying a WebClient application as a WAR file

      You can deploy your WebClient application by exporting it to a WAR file and then publish it to a Tomcat server, to do this follow these steps: Installing the Tomcat server service a. Download the Tomcat service installer from the Tomcat official page ...
    • Crystal Reports

      This guild will show you how to set up and run your Crystal Reports in WebClient. Download article files here Plex Setup All the Plex objects that you will need are in the WebClient Components group model. "_CrystalReportsXI.UI.ViewCrystalReportFull" ...
    • Recommend Versions for CM M3 Development

      The following recommended versions are published as an FYI for CM M3 / CM WebClient development. These are guidelines only, for alternative supported versions please consult the respective product documentation. These recommendations are current as ...