RE: How to redirect to same page with session.timeout.redirectUrl

Rajeev K, modified 5 Years ago. New Member Posts: 3 Join Date: 3/2/20 Recent Posts
Using liferay 6.1How can I redirect the logged-in user to the "current page(same page)" on the session timeout?Settings in my portal-ext session.timeout.redirect.on.expire=true
session.timeout.redirectUrl=/web/guest/home

Any idea on how to set this session.timeout.redirectUrl so that it redirects to the current page?
thumbnail
Mohammed Yasin, modified 5 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts
Hi ,
You can try  writing  a custom action for Session Destroy and redirect to your custom url, you can refer below links.
​​​​​​​ https://help.liferay.com/hc/en-us/articles/360018181131-Performing-a-Custom-Action-Using-a-Hook
https://liferayiseasy.blogspot.com/2015/04/custom-action-hook-in-liferay.html