Using Application state, the data that is assigned into it is shared among by users over the network. If I have a class that is save of course into App_Code folder and it has a variable declared as
public static string strMemberID;
Does the data assigned into will also be shared by users over network? :looko:
It is shared by everything running in the app domain–which is usually everything running in your app, but not necessarily in the case of say, a web farm scenario.
Why should he use session here–he seems to want a shared variable? Session-backed variables make sense for user-specific stuff.
If I missread, then oops, but it seemed like he was asking as a preventive measure. So I gave him the isolated version. I just assumed that strMemberID was user specific.
It is shared by everything running in the app domain–which is usually everything running in your app, but not necessarily in the case of say, a web farm scenario.
So meaning the value that is assigned into that global variable is dependent on the user?