Home > ASP.NET > Managing Data Persistent With ASP.NET

Managing Data Persistent With ASP.NET


Persistence Method Number of Users Expire Time Data Size
Application All users Until the next application restart Any Size
Cookie One user As short as desired, or for months or even years if the user doesn’t delete their cookies Small data
Form Post One user For the next request (can be reused across many requests) It store virtually any amount of data
QueryString One user or one group of users For the next request (can be reused across many requests) Simple Data
Session One user As long as the user is active, plus a timeout period (typically 20 minutes) Can store any amount of data.
Cache All users or a subset of users As long or as short as needed Any type and size of data
Context One user This request only Can hold large objects, but typically does not since it is often used for every request
ViewState One user One Web form Reasonable amount of data
Config file All users Until the configuration file is updated Can hold a lot of data; usually organized as many small strings or XML structures

For More 

Categories: ASP.NET
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: