Methods for cross-session data sharing

0
0

Hi,

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?

A vb example would be most appreciated.

Thank you

Darren

  • You must to post comments
0
0
  • Tiago (ITG)
    Static variables in C# are Shared variables in VB :)
  • Darren
    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
  • Tiago (ITG)
    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.
  • edmond girardi
    Make sure you are running in WebSockets mode – if you are Visual Studio running on Windows 7 – no websocket support.
  • edmond girardi
    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.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.