E
Earl Teigrob
I am using C# to program ASP.NET. I am using class of static fields to hold
all variables that are common to the application, and I am sure that this is
fine. However, I was also using some static fields to hold values that
calculated every time a user opens a page (unique to each session). These
static fields are used in other classes thoughout the application. However,
it suddenlly struck me that these static fields are (i think) common across
all user sessions so that they may confict when two(or more) users try to
open a page that sets and accesses these fields at the same time. Is that
correct?
I am thinking that I should be using instance field variables for all
variables where the data is unique to that session? Is that correct?
Thanks for the help
Earl
all variables that are common to the application, and I am sure that this is
fine. However, I was also using some static fields to hold values that
calculated every time a user opens a page (unique to each session). These
static fields are used in other classes thoughout the application. However,
it suddenlly struck me that these static fields are (i think) common across
all user sessions so that they may confict when two(or more) users try to
open a page that sets and accesses these fields at the same time. Is that
correct?
I am thinking that I should be using instance field variables for all
variables where the data is unique to that session? Is that correct?
Thanks for the help
Earl