S
Smithers
I have a few variables that need to be accessible throughout my ASP.NET Web
app, across all possible Sessions.
AFAIK, there are two reasonable places to store them:
1. Application state (read the values from Web.config on ApplicationStart()
and then refer to them there).
2. properties of a static class (read values from Web.config when the app
starts, and then refer to them there).
Are there any good reasons to chose one of these approaches over the other?
I have currently implemented via #2, but was just wondering if anyone sees
any problems with that approach.
Thanks!
app, across all possible Sessions.
AFAIK, there are two reasonable places to store them:
1. Application state (read the values from Web.config on ApplicationStart()
and then refer to them there).
2. properties of a static class (read values from Web.config when the app
starts, and then refer to them there).
Are there any good reasons to chose one of these approaches over the other?
I have currently implemented via #2, but was just wondering if anyone sees
any problems with that approach.
Thanks!