Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

web service/shared variable question

Status
Not open for further replies.

russellbcopeland

Programmer
Apr 26, 2001
113
0
0
US
I have a web service.

It has a class that has a shared property that is set when a user calls the service

That value may be different for different users

There are two different users making two separate calls to the web service going to see the same shared variable? I am working on the assumption that the answer is no and that the values are separated by their sessions.

Am I wrong?
 
turns out that I am incredibly wrong..

we did this as a test:

a simple web service that contains a shared variable

web method that increments this value and returns its value

called the method from two different locations (one in ATL and one in VA so not same session etc)

and the values returned reflected each others incrementng...


oh well... another reason why shared/global values are just plain bad to use
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top