Application specific server-side variables

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I use user session to store user-specific data, but how can I store
server-side data for the entire web-application?
My current solution is to define static fields - or something like that - in
a class.

Does have ASP.NET a mechanism to store such data?

Thanks,
Jamal
 
Static fields are one solution, but you could also consider the Cache
object - particularly if the data is volatile.
 
Yes, it's the HttpApplication object.

You use it in the same way as Session: Application["SomeName"] =
someValue;
 
Back
Top