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

Google Chrome で予期せずセッションが失われる

written-by

Antonio Ortega

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

問題

session.timeout.auto.extend=true portal-ext.properties ファイルに設定されている場合でも、Google Chrome でセッションが突然失われます。

Environment

  • Liferay DXP
  • Liferay ポータル 6.2

解決策

これは、次の状況でのみ発生します。

  • portal-ext.properties session.timeout.auto.extend=trueを設定しました。
  • web.xml <session-timeout>1</session-timeout>に設定しました。
  • Google Chrome 88 以降を使用しています。
  • ページを 5 分以上非表示のままにしました。 別のタブに移動するだけなので、Liferay が Google Chrome で実行されているタブはアクティブではありません。

その場合、その後、セッションが失われることがわかります。 これは、ブラウザーのパフォーマンスを最適化するために、タブがアクティブでないときにタイマーを処理する方法に、Google Chrome 88 で導入されたいくつかの変更によるものです。 詳細については、Google の記事 Heavy throttling of chained JS timer starting in Chrome 88を参照してください。

この動作を回避するには、さまざまな方法があります。

  • web.xml ファイルで少なくとも <session-timeout>2</session-timeout> を設定し、少なくとも 設定します session.timeout.auto.extend.offset=60
  • 同じ値を 0 に設定して、セッションがアプリケーション サーバーで期限切れにならないようにします。
  • Mozilla Firefox など、別のブラウザを使用してください。
  • ページを 5 分以上非アクティブのままにしないようにしてください。

did-this-article-resolve-your-issue

legacy-knowledge-base