legacy-knowledge-base
公開されました Sep. 10, 2025

セッションタイムアウトの値を変更する方法

written-by

Sivakumar Perumal

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • 任意のログインユーザーのLiferayのデフォルトの セッションタイムアウト を変更するには?

環境

  • Liferay DXP 7.2

解決

  • この値は、 [App_Server_HOME]/webapps/ROOT/WEB-INF/web.xml ファイルに設定されます。 変更が可能です。
  • 以下の設定を手動で調整し、 X をタイムアウト値(分)に置き換えてください。
    <session-timeout>X</session-timeout>
  • web.xmlを修正するExtプラグインを作成します。
  • portal-ext.properties に追加できるポータルプロパティがありますが、それは 常にweb.xmlで設定された値によって上書きされます。
    • このプロパティは、web.xmlファイルに <session-timeout> プロパティが存在しない場合にのみ有効になります。
    • 一部のアプリケーションサーバーでは、セッションタイムアウトが正しく指定されていても、web.xmlから正しく取得されない場合があります。
 # Specify the number of minutes before a session expires. This value is
# always overridden by the value set in web.xml.
#
# Env: LIFERAY_SESSION_PERIOD_TIMEOUT
#
session.timeout=15

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base