开发者

restore session if ViewExpiredException thrown jsf 2.0

开发者 https://www.devze.com 2023-03-05 08:11 出处:网络
the situation is. if the ViewExpiredException thrown,i开发者_运维百科nstead of redirect to another/login page,i want to restore its session before.is there any way to do that?No, that\'s not possible.

the situation is. if the ViewExpiredException thrown,i开发者_运维百科nstead of redirect to another/login page,i want to restore its session before.is there any way to do that?


No, that's not possible. It's already completely lost in the black hole. That's exactly why this exception is been thrown.

You can however just prevent it from happening. You could for example introduce some simple Ajax poller in the view side to keep the session alive at the server side. You can find an example in the following answer: Preventing session timeout during long processing time in JSF

0

精彩评论

暂无评论...
验证码 换一张
取 消