Search

15.2. Configure the HTTP Session Timeout

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. Changing the HTTP session timeout requires that all affected JBoss EAP instances be restarted. Until that is done, the original HTTP session timeout value applies.
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. For details see Configure the HTTP Timeout per Application in the Development Guide
  • Server - specified via the default-session-timeout attribute. This setting is only available from JBoss EAP 6.4.
  • Default - 30 minutes.

Procedure 15.1.  Configure the HTTP Session Timeout using the Management Console

  1. Click the Configuration tab, then navigate to Subsystems, Web, and click on the Servlet/HTTP menu item.
  2. Click the Global tab in the Servlet/HTTP Configuration panel.
  3. Click the Edit option.
  4. Enter the new value for the Default session timeout.
  5. Click the Save button.
  6. Reload the JBoss EAP server.

Procedure 15.2.  Configure the HTTP Session Timeout using the Management CLI

Note

Add the prefix /host=HOST_NAME to the command for a managed domain.
  1. Specify the desired HTTP Session Timeout value.
    /subsystem=web:write-attribute(name=default-session-timeout, value=timeout)
  2. Reload the JBoss EAP server.
    reload
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.