Message Boards

Liferay 7.3 - Redirect after session timeout

Moshe Steinvortzel, modified 3 Years ago.

Liferay 7.3 - Redirect after session timeout

New Member Posts: 3 Join Date: 9/23/19 Recent Posts
I have portal with multiple sites and each site has a public page with login portlet.
I'm able to redirect from site's public pages to private pages in login.My question is, if I'm in a specific site and my session is terminated, how do I redirect from this site's private pages to same site public pages and not being redirected to the first site created or to the default login portlet in the first site?

I tried to use liferay LifecycleAction: servlet.session.destroy.events. But the Http Response is null so I cant redirect.
And these lines does not help me because it will always redirect to the same url and I need it to be dynamic according to the site that I am in:
company.default.home.url=
default.landing.page.path=
default.logout.page.path=
auth.login.url=
Any suggestions?