I need to keep some state in either the server or client to allow my users to continue searching on a keyword in a search results page. (It's a basic search engine for some products with a google like first page, and search results second page.)
I tried the recommended solution:
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>
and combined it with
session.setMaxInactiveInterval(10);
for testing. But it seems like the state is not saved, and on the next POST
click the keywords
and products
in my SessionScoped
beans are lost.
Is there a solution? A workaround? It's really embarrassing to have a your session expired
error message displayed to users, who aren't even required to login.