Multi Instance application

0
0
hi,
I probably didn't quite understand how the web (or Wisej) works.
I have an application with a main window and many shared classes.
The first client connects with Chrome and a datagridview with a few lines appears in its browser. 
The second user logs in from another pc and loads his datagridview page.
When the first user, through the menu, tries to open a second window to edit some configuration parameters, 
this windows will be opened on the browser of the second client.
It also appears that the two browsers share global variables. 
Suggestions or examples on how to create distinct, multi-instance applications?
I am using 2.2.59
Nello Pernice
  • You must to post comments
0
0

Nello, to add to Frank’s message. Statics (or shared in VB) are not a Wisej feature. If you use statics in ASP.NET or Blazor or a web api in .NET they are a single instance across the process shared by all sessions.

About sessions, they don’t exist in any compiler. Sessions are just a collection of context objects stored in a static cache in relation to a unique id usually stored in a cookie or browser storage. Web frameworks retrieve that context object for every request.

  • You must to post comments
0
0

Hi Nello,

you probably have some static definitions. Statics are shared across all sessions.
If you put together a small test case we can tell you more.

For user (session) specific data you can use the session object:

https://docs.wisej.com/docs/controls/general/application#session-object

Best regards
Frank

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.