此内容没有您所选择的语言版本。
15.2. Configure the HTTP Session Timeout
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
- Click the Configuration tab, then navigate to Subsystems, Web, and click on the Servlet/HTTP menu item.
- Click the Global tab in the Servlet/HTTP Configuration panel.
- Click the Edit option.
- Enter the new value for the Default session timeout.
- Click the Save button.
- 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.
- Specify the desired HTTP Session Timeout value.
/subsystem=web:write-attribute(name=default-session-timeout, value=
timeout
) - Reload the JBoss EAP server.
reload