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

バーチャルホストとして異なるURLにアクセスした場合、ユーザーは異なる動作をする。

written-by

Justin Mann

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

問題

  • 環境は2つの異なるドメインがバーチャルホストとして動作するように設定されています。
  • ユーザーがあるドメインにアクセスしてログインした後、他のドメイン名に切り替えると、ユーザーセッションが各URLに引き継がれないことに気づく。

Environment

  • Liferay DXP 7.3+

解決策

  • これは意図された動作である。
  • ユーザー・セッションとクッキーはドメイン名と結びついているため、異なるドメイン名や同じ環境のバーチャル・ホスト間で切り替えを行う場合、ユーザーは再度認証を行う必要があると予想されます。
  • これは、wwwがあらかじめ付加されているドメイン名と、wwwがあらかじめ付加されていない同じドメイン名についても同様である。
    • 例えば、 www.test.com とtest.comは別々のドメイン名であり、ユーザーセッションは2つのドメイン間で引き継がれることはありません。
did-this-article-resolve-your-issue

legacy-knowledge-base