« Return to Thread: Data loss within Session Script
Hi,I'm having some strange issue with Session Script.My webapp is used as follow
- welcome screen where you can select something like a chatroom
- once selected, two popup windows are opened (dual screen app)
- Both make an initial call to set the 'chatroom id' within the script session.
- The left window (no reverse ajax) is used to input some data. When the input is ended, an ajax call (the "end call") is made to the server to notify all client right window that something new has been added.
The issue is :1/ If I input something quickly after the two window opening, everything works ok2/ If I wait some time doing nothing, and then input something, on the "end call", when doing a foreach on my scriptsession (to do reverse ajax) opened on the right window, I can't find the chatroomId.3/Next to 2/ if I refresh only the left window (input) and do the input again, it works.I think something is wrong with script session handling with two popup.On server side I browse script session of the right window, data in script session seems lost.But a refresh on the left windows correct the situation (ie : one window set it's id in it's left script session)Whereas, it would be more logical that all client on right windows refresh their browser to correct the data loss.I'm using DWR3 M1.I'm opening the two popup from the same window, which is handy as a window can call a javascript function of the other window (via the common parent window).Do you think a workaround would be : Select chatroom, navigate to new page, open one window, navigate to a new page, open an other ? (also I loose the handy cross window js call)Or, all my window are implementing the a generic method and I filter the server message on client side (poor solution).Thomas.
« Return to Thread: Data loss within Session Script
| Free Forum Powered by Nabble | Forum Help |