Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
custom session timed out page or removing session extend
Hi Guys,
I need to remove the session extend functionality on before session timed out and need to display only session timed out warning message. i had tried to modified session.js and unable to achieve this. if i make session.timeout.warning=0, it is not giving the extend option to the user but it is not displaying the session timed out warning message as well.
i started doing this by second approach by making:
default.landing.page.path=/web/guest/session-expired
auth.forward.by.last.path=true
session.timeout.warning=0
session.timeout.redirect.on.expire=true
It is not displaying any warning session timed out but it is redirecting to login page instead of /web/guest/session-expired.
user should view any warning or session timed out page on session timed out. hearty welcome to your ideas on this.
I need to remove the session extend functionality on before session timed out and need to display only session timed out warning message. i had tried to modified session.js and unable to achieve this. if i make session.timeout.warning=0, it is not giving the extend option to the user but it is not displaying the session timed out warning message as well.
i started doing this by second approach by making:
default.landing.page.path=/web/guest/session-expired
auth.forward.by.last.path=true
session.timeout.warning=0
session.timeout.redirect.on.expire=true
It is not displaying any warning session timed out but it is redirecting to login page instead of /web/guest/session-expired.
user should view any warning or session timed out page on session timed out. hearty welcome to your ideas on this.
Hi Rajesh,
You can override \html\common\themes\session_timeout.jspf for that in hook.
Just create a hook to override a mentioned jspf and in a method call to Liferay.Session.init(),
pass an argument timeoutWarning: 0, instead of timeoutWarning: <%= sessionTimeoutWarning %>,.
This will remove session extend functionality from your portal.
Thanks and Regards,
Hitesh Methani.
You can override \html\common\themes\session_timeout.jspf for that in hook.
Just create a hook to override a mentioned jspf and in a method call to Liferay.Session.init(),
pass an argument timeoutWarning: 0, instead of timeoutWarning: <%= sessionTimeoutWarning %>,.
This will remove session extend functionality from your portal.
Thanks and Regards,
Hitesh Methani.
Hi Hitesh,
i tried your suggestion and it is working fine. thanks for your help hitesh.
i tried your suggestion and it is working fine. thanks for your help hitesh.