custom session timed out page or removing session extend

thumbnail
Rajesh Babu, modified 14 Years ago. Regular Member Posts: 161 Join Date: 2/8/10 Recent Posts
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.
thumbnail
Hitesh Methani, modified 14 Years ago. Regular Member Posts: 171 Join Date: 6/24/10 Recent Posts
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. emoticon

Thanks and Regards,
Hitesh Methani.
thumbnail
Rajesh Babu, modified 14 Years ago. Regular Member Posts: 161 Join Date: 2/8/10 Recent Posts
Hi Hitesh,

i tried your suggestion and it is working fine. thanks for your help hitesh.