When developing ASP.NET web applications, a very common approach to maintaining state is to store data in the various ways.
Here are some ways
| Accessibility | Description | Location |
Application (global) | Global | Uses server memory | Server |
Session | User | Can use user memory and/or Database storage | |
Data cache | Global | Can be user specific with proper handling | Server |
View state | Web Page | Rides along with the page | |
Database | Global and User | Includes SQL, XML, local files | |
Cookie | User | Stored on the client’s computer and accessed via the browser | |
Query String | User | Doesn’t use server memory | |
Form fields | Web Page | Popular in HTML and classic ASP development | |