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

問題

  • セッションが終了すると、ユーザーはカスタムページにリダイレクトする必要があります。

Environment

  • Liferay DXP 7.0
  • Liferay DXP 7.1
  • Liferay DXP 7.2
  • Liferay DXP 7.3
  • Liferay DXP 7.4

解決策

  • セッションの終了時にユーザーを任意のページにリダイレクトさせるためには、以下のセッションタイムアウトのリダイレクトプロパティをtrueに設定し、特定のページにリダイレクトさせるためには、portal-ext.propertiesで会社のデフォルトホームプロパティを有効なURLに設定する必要があります。
    #
        # Set this to true if the user is redirected to the default page when the
        # session expires.
        #
        # Env: LIFERAY_SESSION_PERIOD_TIMEOUT_PERIOD_REDIRECT_PERIOD_ON_PERIOD_EXPIRE
        #
        session.timeout.redirect.on.expire=false
    #
        # This sets the default home URL of the portal.
        #
        # Env: LIFERAY_COMPANY_PERIOD_DEFAULT_PERIOD_HOME_PERIOD_URL
        #
        company.default.home.url=/web/guest

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base