开发者

Dwr and script session invalidation

We ar开发者_如何学Ce using reverse ajax with polling in our DWR 2.0.6 based application. The problem is that when we move away from a page where reverse ajax was set to true, we want that ScriptSession to be invalidated. It does not happen by default. In the docs for DWR 3.0 it is mentioned that we can call dwr.engine.setNotifyServerOnPageUnload(true); in our js file

But this is not available in 2.0.6. Any ideas suggestions etc.?


You could write this manually, using an "onbeforeunload" handler.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜