此内容没有您所选择的语言版本。

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

  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

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.