Search code examples
jsfsessionviewexpiredexception

jsf view expired imply session destroyed?


I have a question :

When jsf view has expired, can we be sure that the session is destroyed and all its attributes are removed ?

Thank you for responding me.


Solution

  • No. It's the other way round, provided that javax.faces.STATE_SAVING_METHOD is set to its default value of server. Then a session destroy indeed implies an expireation of all views saved so far in the session. If the state saving is however set to client, then the view never expires.

    See also: