开发者

Dwr and script session invalidation

开发者 https://www.devze.com 2022-12-24 01:33 出处:网络
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 ScriptSessio

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

精彩评论

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