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

    • WebClient Manual

      Here you can find the articles of the CM WebClient user manual, just click on the name and it will take you directly to the article. Introduction Installation Requirements Plex Model Configuration Overview of Workspace Setup Calling WebClient from an ...
    • 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) { ...
    • CM WebClient File Upload Setup

      File Upload This guide will show you how to upload files to your Web Server from your WebClient application. 1. Import the attached zip Java Project into your Eclipse Workspace. NOTE: If your workspace uses a Tomcat 10 server, make sure to use the ...
    • Overview of Workspace Setup

      After you have the software requirements installed, below are the steps that you have to perform to setup your workspace for CM WebClient from scratch. Each step will be discussed in details when you click on the link. Install WebClient Builder ...
    • URL for software and plugins

      Softwares For a better requirements decision, see the compatibility matrix to validate the best configurations according to the component versions you wish to use. Webclient Webclient 1.8.8: Download Webclient 1.8.8 (New) here Webclient 1.8.7: ...