Home > Net >  On the same account, on A different computer login, can appear sometimes query information disordere
On the same account, on A different computer login, can appear sometimes query information disordere

Time:09-21

The platform now, I use the webservice + webfrom development, now have A problem, that is the same account, log in on different computers, can appear sometimes query information disordered phenomena, such as account A in B and C computer login, B computer query is conditions B, C computer query condition C, now B computer display condition C data query, why? Don't know the reason why is webservice or webform, or other reasons, have encountered similar problems, please help to solve, or provide the solution, thank you so much ~ 90 degrees (bow)

CodePudding user response:

B ah, you this is not a query, the server then returns the data to B, C, query, data back to the C? Good confusion as single sign-on, the same account allows only one IP login,

CodePudding user response:

Could you save user state after landing or conditions using the static variables..

CodePudding user response:

reference 1st floor andy_wanhl response:
ah, this is not your B query, the server then returns the data to B, C, query, data back to the C? Good confusion as single sign-on, the same login account allows only one IP,

In this way, the single sign-on, different session will kick off the old

CodePudding user response:

I now the project at hand, but also the single sign-on, and back up, and polling login background, background, followed out,

Directly to kick off the QQ login is the login status, QQ giant sure there is no technical problem, but why do that, in addition to the state is not the same, there must be a lot of other bad scene processing, therefore, the simplest and the most reasonable, is the SSO,

CodePudding user response:

Oh, sorry, the building Lord, I thought it was your speech, just advice, set on your own, you should, the server returned data, get the IP address of the corresponding real request,

CodePudding user response:

Single sign-on not only not important important is that you want to find your existing bug and not shun bug check code that I doubt the static variables

CodePudding user response:

Have encountered this kind of situation, is the static variable to hold the user name,
B the user login, the static variable assignment, user login, C assignment again static variables,
This time B users will use the new static variables to query data,
Static variable data is stored in the server, has nothing to do with the session, an assignment, other session will use this value,

CodePudding user response:

Webservice still have variable?? This is what the devil design train of thought,
Data from webservice query, do not provide the user ID and temporary query condition?

CodePudding user response:

Debug,

CodePudding user response:

Methods existed only in the latest state.
A=b query
A=c query
Returns the query of c b and c

CodePudding user response:

Post play is not very well, don't reply one by one, I saw everyone's Suggestions and ideas, thank you I'll see if there is a static variable, in addition, we need is not a single sign-on,
  •  Tags:  
  • C#
  • Related