Search

16.3. Configure the HTTP Timeout per Application

download PDF
The HTTP session timeout defines the period after which a HTTP session is considered to have become invalid because there was no activity within the specified period.
The HTTP session timeout can be configured in several places. In order of precedence these are:
  • Application - defined in the application's web.xml configuration file.
  • Server - specified via the default-session-timeout attribute.
  • Default - 30 minutes.

Procedure 16.1.  Configure the HTTP Timeout per Application

  1. Edit the application's WEB-INF/web.xml file.
  2. Add the following configuration XML to the file, changing 30 to the desired timeout (in minutes).
    <session-config>
      <session-timeout>30</session-timeout>
    </session-config>
  3. If you modified the WAR file, redeploy the application. If you exploded the WAR file, no further action is required because JBoss EAP will automatically undeploy and redeploy the application.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.