User should be re-directed to the login page once the session expires

Issue

Once the session expires, users remain on the same page on which they were already there until and unless they click on somewhere, then it redirects to the login page.

Environment

  • Liferay DXP 7.0

Resolution

If you want the user to directly go to the login page on the session expires, please follow the below steps:

  1.  Go to Control Panel>>Instance Settings.
  2.  There you will find default landing page just give the path of the login page there.
  3.  Add this to your portal-ext.properties
session.timeout.redirect.on.expire=true

Note: After following these steps you need to restart your server and once the session expires, it will directly take you to the login page.

Was this article helpful?
0 out of 0 found this helpful