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

セッションがタイムアウトするたびにユーザーのログインを避ける

written-by

Kanchan Bisht

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

問題

  • セッションが期限切れになるたびに、ユーザーのログインを再度要求しています

Environment

  • Liferay 7.0

解決策

  • 各セッション タイムアウト後のログインは、Liferay ポータルのデフォルト機能です。
  • セッションがタイムアウトするたびにログインを回避するには、session.timeout プロパティを portal-ext.properties ファイルで変更し、プロパティ ファイルで設定されている場合は session.timeout プロパティのエントリをコメント アウトする必要があります。
Set the following property in portal-ext.properties:
session.timeout.auto.extend=true
  • セッションが期限切れになるまでの分数を指定します。 この値は、 web.xmlで設定された値によって常に上書きされます。
 <!-- ==================== Default Session Configuration ================= -->
<!-- You can set the default session timeout (in minutes) for all newly -->
<!-- created sessions by modifying the value below. -->
<session-config>
<session-timeout>5</session-timeout>
</session-config>
  • セッションを延長するかどうかをユーザーに尋ねる必要がないようにするには、自動延長モードを true に設定します。 代わりに、自動的に延長されます。 このモードの目的は、ポータル ページがロードされた状態でユーザーのブラウザが開いている限り、セッションを開いたままにすることです。 パフォーマンスを向上させるには、5 分などの短い「session.timeout」を使用することをお勧めします。

did-this-article-resolve-your-issue

legacy-knowledge-base