问题
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.
回答1:
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:
- javax.faces.application.ViewExpiredException: View could not be restored
- com.sun.faces.numberOfViewsInSession vs com.sun.faces.numberOfLogicalViews
来源:https://stackoverflow.com/questions/18056806/jsf-view-expired-imply-session-destroyed