Fórum

Session timeout redirection issue when user login

Limbadri Satar, modificado 10 Anos atrás.

Session timeout redirection issue when user login

New Member Postagens: 3 Data de Entrada: 07/05/13 Postagens Recentes
Hi,

I have problem with default page navigation after login when session is getting timeout.

We need to forward the user to home page when user logged into the application always. So we have written LoginEvent extending from com.liferay.portal.kernel.events.Action class and it is working fine.

But when session is timeout and user clicks on refresh button, liferay is appending redirect url in address bar and navigating user to login page. If user login then user is navigating to last page.

We need to navigate to home page always when user is login into the application.

I have added the following properties in portal-ext.properties file
auth.forward.by.last.path=true
auth.forward.by.redirect=false
auth.login.url=/web/core/login
session.timeout=30
session.timeout.warning=2
default.logout.page.path=/web/app/login
default.landing.page.path=/group/app/policy
thumbnail
Manish Yadav, modificado 10 Anos atrás.

RE: Session timeout redirection issue when user login

Expert Postagens: 493 Data de Entrada: 26/05/12 Postagens Recentes
Hi Limbadri Satar,

Please add below properties and restart server .

session.timeout.auto.extend=false
session.timeout.redirect.on.expire=true


HTH

Thanks & Reagards
Manish Banwari Lal yadav
Limbadri Satar, modificado 10 Anos atrás.

RE: Session timeout redirection issue when user login

New Member Postagens: 3 Data de Entrada: 07/05/13 Postagens Recentes
Manish,

It is working fine.

But if we delete the browser cookies and refreshing page then user is redirecting to the login page, if user provides login credentials and click on sign-in button then user is navigating to session cleared page instead of home page.

Is there any option to redirect the user to home page in all the scenarios?
Balkrushna Patel, modificado 9 Anos atrás.

RE: Session timeout redirection issue when user login

New Member Postagens: 3 Data de Entrada: 28/11/13 Postagens Recentes
Just add one line in portal.properties file..Liferay redirecting to the last saved Path so you need to make below line false...

auth.forward.by.last.path=false

And Restart your server....
sedki jdaida, modificado 7 Anos atrás.

RE: Session timeout redirection issue when user login

Junior Member Postagens: 25 Data de Entrada: 08/09/16 Postagens Recentes
Hi ,
I work with liferay 7 ga3 and I do the same thinks and i put the same config in the portal-ext.properties like this :

session.timeout=2
session.timeout.warning=1
session.timeout.auto.extend=false
session.timeout.redirect.on.expire=true
auth.forward.by.last.path=false
auth.forward.by.redirect=false
auth.login.url=/web/core/login

default.logout.page.path=/web/app/login
default.landing.page.path=/group/app/policy


but when session timeout there the redirection is to home page is not to the login page

I wan't to redirect when session timeout to login page.

Help me Please ....
sedki jdaida, modificado 7 Anos atrás.

RE: Session timeout redirection issue when user login

Junior Member Postagens: 25 Data de Entrada: 08/09/16 Postagens Recentes
HI,
I develop a jsf protlet in liferay 7 and when the session of liferay is expired and when user
click in any button in portlet it will redirect to login portlet
in order to login again.

Help Me.