As we all know as a developer that HTTP is a state less protocol so when ever we want to pass data from one page to another or want to visit same page multiple times or load same page multiple times, we require state management to save the data from begin lost during multiple hits or visits or redirects.
There are two types of state management :
1. Client side state management.
In client side state management the information is stored on client’s system. Some of the client side state management methods are Hidden Fields, Cookies, Query String, ViewData (ASP MVC), ViewBag (ASP MVC), TempData (ASP MVC),etc.
2. Server side state management
It stores the data on the server memory and hence increases the security. Some of the method for server side state management are Session State, Caching, Profile Properties, Application State, etc.