Foren
custom session timed out page or removing session extend
Rajesh Babu, geändert vor 12 Jahren.
custom session timed out page or removing session extend
Regular Member Beiträge: 161 Beitrittsdatum: 08.02.10 Neueste Beiträge
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.
Hitesh Methani, geändert vor 12 Jahren.
RE: custom session timed out page or removing session extend
Regular Member Beiträge: 171 Beitrittsdatum: 24.06.10 Neueste Beiträge
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.
Rajesh Babu, geändert vor 12 Jahren.
RE: custom session timed out page or removing session extend
Regular Member Beiträge: 161 Beitrittsdatum: 08.02.10 Neueste Beiträge
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.