Search code examples
jspliferayportlet

liferay portlet: access forbidden after time period for guest user


I created a portlet on Liferay 6.1, JBoss 7 for guests. It needs to work for the user even if he hasn't made an action for a long period of time.

Actual if I do something in my portlet and wait for about 10 minutes and then do something again (for example changing jsp by hitting a button), this error appears: enter image description here

It's german, but it means: forbidden, you don't have the permission to access this ressource. How can I avoid this?


Solution

  • You have two options that I can think of. 1) Increase the session time out. 2) Make an ajax request to your server to keep your session active.

    Hope this helps!