You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Being new to web development, I'm getting caught out by all sorts of "webby" things :-)
I can't find any information on methods to share data between sessions. I understand that I could perhaps use the good ol' text file or database, but is there another way? Some kind of global variable storage in a known location for all sessions to access, for example?
Thank you both, however while attempting to test this I’ve run into another peculiarity.
I run the project and a session opens in IE and works as expected. The IE tab is labelled “WebDesktopApplication1”.
I then open another tab and paste in the same url (i.e. http://localhost:45035/) – but this page isn’t updating at all. Values are frozen from the time it loads and it appears to be just a static html page. This tab is labelled differently as just “Localhost”.
May I suggest you download the “Simple Chat” example from https://wisej.com/examples/ . Try it on two different browsers and you’ll see that when you type on one browser, the “other” browser doesn’t get updated until you click it.
You could make a static class that contains a dictionary and store data to be shared with multiple sessions. Lookup the key value and grab the object – you key would have to be something commonly known – like a Department ID or Company ID – something like that.
Activity
itg-assistant commentedon Jun 13, 2026
Luca answered 2018-04-26 20:13:35 UTC
Anything static is shared. In VB.NET it's probably either static or shared:
https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/modifiers/shared
https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/modifiers/static
itg-assistant commentedon Jun 13, 2026
Tiago (ITG) answered 2018-04-26 20:44:45 UTC
Static variables in C# are Shared variables in VB :)
itg-assistant commentedon Jun 13, 2026
Darren answered 2018-04-26 21:23:55 UTC
Thank you both, however while attempting to test this I’ve run into another peculiarity.
I run the project and a session opens in IE and works as expected. The IE tab is labelled “WebDesktopApplication1”.
I then open another tab and paste in the same url (i.e. http://localhost:45035/) – but this page isn’t updating at all. Values are frozen from the time it loads and it appears to be just a static html page. This tab is labelled differently as just “Localhost”.
What on earth is happening here?
Thanks
itg-assistant commentedon Jun 13, 2026
Tiago (ITG) answered 2018-04-26 22:26:09 UTC
May I suggest you download the “Simple Chat” example from https://wisej.com/examples/ . Try it on two different browsers and you’ll see that when you type on one browser, the “other” browser doesn’t get updated until you click it.
itg-assistant commentedon Jun 13, 2026
edmond girardi answered 2018-04-29 22:55:11 UTC
Make sure you are running in WebSockets mode – if you are Visual Studio running on Windows 7 – no websocket support.
itg-assistant commentedon Jun 13, 2026
edmond girardi answered 2018-04-30 14:45:23 UTC
You could make a static class that contains a dictionary and store data to be shared with multiple sessions. Lookup the key value and grab the object – you key would have to be something commonly known – like a Department ID or Company ID – something like that.