Saturday, July 21, 2007

State Management : Application State Basics

Application state is a data repository available to all classes in an asp.net application Stored in memory on the server

Applies to all users and all sessions

Useful to store often used data that is not user specific

Stored as an instance of HttpApplicationState

HttpApplicationState class can be accessed anytime during the application lifetime

New instance of this class is created everytime user accesses a URL resource

Application state is free-threaded, synchronization support is thus necessary

No comments: