I use a4j:poll to keep session alive but after some idle time i get "View could not be restored" error. I believe poll is creating views in background and after it reaches limit of 15(?) exception is thrown.
<h:form>
<a4j:poll id="poll" interval="30000"/>
</h:form>
web.xml:
<session-config>
<session-timeout>1</session-timeout>
<cookie-config>
<secure>true</secure>
</cookie-config>
<tracking-mode>COOKIE</tracking-mode>
</session-config>
BalusC said: "So, it will only happen when you've manually set that limit way too low, or that you're continuously creating new views in background (e.g. by a badly implemented poll)." in: javax.faces.application.ViewExpiredException: View could not be restored
and I believe it is my problem but i have no diea how to make it right :(