开发者

JSF keep session active during long running process

We have a long-running process in our JSF (MyFaces implementation) WebApp. It is required to have an active session during this long-running process. Will bringing focus on various components every so often keep the session alive? (ie, clicking the background, mouse-over tabs/links, etc). I have had success with this and don't understand why this is working. Is this due to some sort of javascript/ajax functionality in the开发者_运维知识库 underlying implementation? Thanks.


Assuming you've already explored breaking this long running process away from a web request and for some reason can't, here's your answer.

The underlying implementation won't have ajax unless you put it there. You could do something like javascript on a timer that makes an XHR request, or you could up the session timeout in your container configuration so you don't have to do that nastiness.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜