{"id":710,"date":"2015-04-08T15:38:14","date_gmt":"2015-04-08T10:08:14","guid":{"rendered":"https:\/\/blog.binarybits.net\/?p=710"},"modified":"2015-04-08T15:38:14","modified_gmt":"2015-04-08T10:08:14","slug":"asp-net-persistence","status":"publish","type":"post","link":"https:\/\/blog.binarybits.net\/asp-net-persistence\/","title":{"rendered":"ASP.NET Persistence"},"content":{"rendered":"
Following is a simple table which I came across a post “Nine Options for Managing Persistent User State in Your ASP.NET Application<\/a>”<\/p>\n Posting it here for easy reference. This lists out various\u00a0ASP.NET Persistence methods.<\/p>\n
Persistence Method<\/td>\n | Who Needs the Data?<\/td>\n | For How Long?<\/td>\n | How Much Data?<\/td>\n<\/tr>\n |
Application<\/td>\n | All users<\/td>\n | Until the next application restart<\/td>\n | Can be almost any size\u2014it will only be stored once<\/td>\n<\/tr>\n |
Cookie<\/td>\n | One user<\/td>\n | As short as desired, or for months or even years if the user doesn’t delete their cookies<\/td>\n | Minimal, simple data<\/td>\n<\/tr>\n |
Form Post<\/td>\n | One user<\/td>\n | For the next request (can be reused across many requests)<\/td>\n | Virtually any size\u2014the data is sent back and forth with every page<\/td>\n<\/tr>\n |
Query String<\/td>\n | One user or one group of users<\/td>\n | For the next request (can be reused across many requests)<\/td>\n | Minimal, simple data<\/td>\n<\/tr>\n |
Session<\/td>\n | One user<\/td>\n | As long as the user is active, plus a timeout period (typically 20 minutes)<\/td>\n | Can be almost any size, but should be minimized since every user has their own separate session store<\/td>\n<\/tr>\n |
Cache<\/td>\n | All users or a subset of users<\/td>\n | As long or as short as needed<\/td>\n | Can be used for large or small, simple or complex data<\/td>\n<\/tr>\n |
Context<\/td>\n | One user<\/td>\n | This request only<\/td>\n | Can hold large objects, but typically does not since it is often used for every request<\/td>\n<\/tr>\n |
View State<\/td>\n | One user<\/td>\n | One Web form<\/td>\n | Minimal; as with Form Post, this data is sent back and forth with every page<\/td>\n<\/tr>\n |
Config file<\/td>\n | All users<\/td>\n | Until the configuration file is updated<\/td>\n | Can hold a lot of data; usually organized as many small strings or XML structures<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n","protected":false},"excerpt":{"rendered":" Following is a simple table which I came across a post “Nine Options for Managing Persistent User State in Your ASP.NET Application” Posting it here for easy reference. This lists out various\u00a0ASP.NET Persistence methods. Persistence Method Who Needs the Data? For How Long? How Much Data? Application All users Until the next application restart Can […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[9],"tags":[],"yoast_head":"\n |