Foren
How to automatically redirect to home page after session timeout
Gautam Sharma, geändert vor 11 Jahren.
How to automatically redirect to home page after session timeout
Junior Member Beiträge: 92 Beitrittsdatum: 30.04.12 Neueste Beiträge
Hi All,
I would like to automaticatically redirect control to my community home page after session timeout. i tried putting below properties in my portal-ext.properties file but after sesssion timeout it doesn't automatically goes to community home page however if i click on any link or button it going back to home page.
Can anybody please let me know how control can automatically be transfered to home page after session timeout instead of clicking any button or link.
Environment: Liferay 6.0
session.id.delimiter=
session.id.weblogic.delimiter=!
session.timeout=5
session.timeout.warning=1
session.timeout.auto.extend=false
session.timeout.redirect.on.expire=true
default.landing.page.path=/web/demo/home
last.modified.check=false
theme.css.fast.load=true
javascript.fast.load=true
hibernate.show_sql=false
com.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter=true
com.liferay.portal.servlet.filters.unsyncprintwriterpool.UnsyncPrintWriterPoolFilter=true
jsp.writer.buffer.size=0
finalize.manager.thread.enabled=true
session.enable.phishing.protection=true
Thanks
I would like to automaticatically redirect control to my community home page after session timeout. i tried putting below properties in my portal-ext.properties file but after sesssion timeout it doesn't automatically goes to community home page however if i click on any link or button it going back to home page.
Can anybody please let me know how control can automatically be transfered to home page after session timeout instead of clicking any button or link.
Environment: Liferay 6.0
session.id.delimiter=
session.id.weblogic.delimiter=!
session.timeout=5
session.timeout.warning=1
session.timeout.auto.extend=false
session.timeout.redirect.on.expire=true
default.landing.page.path=/web/demo/home
last.modified.check=false
theme.css.fast.load=true
javascript.fast.load=true
hibernate.show_sql=false
com.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter=true
com.liferay.portal.servlet.filters.unsyncprintwriterpool.UnsyncPrintWriterPoolFilter=true
jsp.writer.buffer.size=0
finalize.manager.thread.enabled=true
session.enable.phishing.protection=true
Thanks
jelmer kuperus, geändert vor 11 Jahren.
RE: How to automatically redirect to home page after session timeout
Liferay Legend Beiträge: 1191 Beitrittsdatum: 10.03.10 Neueste Beiträge
Setting this property to true :
Will redirect you to themeDisplay.getURLHome() on session timeout. if you want it to redirect you to a different location you would probably have to hook docroot/html/common/themes/session_timeout.jspf
#
# Set this to true if the user is redirected to the default page when the
# session expires.
#
session.timeout.redirect.on.expire=false
Will redirect you to themeDisplay.getURLHome() on session timeout. if you want it to redirect you to a different location you would probably have to hook docroot/html/common/themes/session_timeout.jspf
Gautam Sharma, geändert vor 11 Jahren.
RE: How to automatically redirect to home page after session timeout
Junior Member Beiträge: 92 Beitrittsdatum: 30.04.12 Neueste Beiträge
Hi Jelmer,
Thanks for reply.
As you can see i have already set "session.timeout.redirect.on.expire" to true in portal-ext.properties file.
session.timeout.redirect.on.expire=true
But still its not redirecting to home page.
Thanks
Thanks for reply.
As you can see i have already set "session.timeout.redirect.on.expire" to true in portal-ext.properties file.
session.timeout.redirect.on.expire=true
But still its not redirecting to home page.
Thanks
sedki jdaida, geändert vor 7 Jahren.
RE: How to automatically redirect to home page after session timeout
Junior Member Beiträge: 25 Beitrittsdatum: 08.09.16 Neueste Beiträge
put this in portal.ext.properties then restart the lifera server
session.timeout.warning=1
session.timeout.auto.extend=false
session.timeout.redirect.on.expire=true
session.timeout.redirectUrl=/c/portal/j_login
##redirect last visited page after successful login
auth.forward.by.last.path=true
##Show login portlet without return to full page link
layout.remember.request.window.state.maximized=false
#default.logout.page.path=/c/portal/customlogin
session.enable.phishing.protection=false
session.timeout.warning=1
session.timeout.auto.extend=false
session.timeout.redirect.on.expire=true
session.timeout.redirectUrl=/c/portal/j_login
##redirect last visited page after successful login
auth.forward.by.last.path=true
##Show login portlet without return to full page link
layout.remember.request.window.state.maximized=false
#default.logout.page.path=/c/portal/customlogin
session.enable.phishing.protection=false