問題
- session.timeout.auto.extend が true に設定され、session.timeout と session.timeout.auto.extend.offset がすべて構成されている場合でも、ユーザー セッションは約 10 ~ 15 分の非アクティブで期限切れになります。 この問題は、Google Chrome を使用している場合にのみ発生します。
Environment
- DXP 7.3
解決策
- この問題は、Liferay の session.js ファイルの setInterval が劇的に遅くなると発生します。 間隔は 1 分単位でチェックされないため、セッションが延長されるまでに、サーバーでは既に有効期限が切れています。 セッションの期限切れは Google Chrome でのみ発生し、通常、session.timeout が低く (2 分など)、session.timeout.auto.extend.offset が 60 未満の場合に発生します。
- セッションを維持するには、次の回避策に従ってください: session.timeout.auto.extend.offset を 60 (1 分) 以上に増やし、session.timeout を 2 以上に増やします。 たとえば、次の値を portal-ext.properties ファイルに追加します。
session.timeout=3
session.timeout.auto.extend=true
session.timeout.auto.extend.offset=70
追加情報
-
この 動作は、Chrome 88 (21 年 1 月リリース) で特定の条件が見つかった場合に導入されました。 詳細については、次の外部記事を参照してください: Chrome 88+ は特定の条件でタイマーを 1 分に調整します