In my previous article, State Management Technique In ASP.NET - Part One , we have learned the Server side state management technique with various types of sessions, which are Inproc session, state Server session, SQL Server session, and custom session, and its events such as session_start, session_end, and the application-related events like application_start , application_end and application_error.
In this article, I will focus on the client side state management technique.
In this article, I will focus on the client side state management technique.
State Management in ASP.NET
As we know that the applications are developed using ASP.NET, it depends on the protocol such as HTTP, a stateless protocol. If the user is trying to register a form by filling the user details and when the user clicks on the submit button, the information will be lost because ASP.NET supports stateless protocol.
For post back requests, the Web Application or the Webpage does not hold the previous user's information. In order to overcome the above problem, we have an alternative; i.e., State Management technique.
As we know that the applications are developed using ASP.NET, it depends on the protocol such as HTTP, a stateless protocol. If the user is trying to register a form by filling the user details and when the user clicks on the submit button, the information will be lost because ASP.NET supports stateless protocol.
For post back requests, the Web Application or the Webpage does not hold the previous user's information. In order to overcome the above problem, we have an alternative; i.e., State Management technique.
State Management
It is a process of storing the user's information, when the user submits the request to the Web Server. We have two types of State Management techniques, which are given below.
It is a process of storing the user's information, when the user submits the request to the Web Server. We have two types of State Management techniques, which are given below.
- Server Side State Management
- Client Side State Management
Server Side State Management
Please refer to my previous article State Management Technique In ASP.NET- Part One.
Client Side State Management
It is a process of storing the user details or the user information within the client machine or the client's Browser memory. Whenever we want to save state related information on the client machine, instead of hitting the Web Server every time, we will go for the client side State Management.
When the user requests a Web page, instead of hitting the Server every time, we can get it from the client machine. Execution in the client side State Management will be faster compared to the Server side state management because the data will be received from the client machine or the Browser memory.
There is less security in the client side state management as the data stores into the client machine or the Browser's memory. We cannot implement the client side state management technique for confidential data like banking applications, where user's bank information should be secure such as user login id, password or pin number etc.
Please refer to my previous article State Management Technique In ASP.NET- Part One.

Client Side State Management
It is a process of storing the user details or the user information within the client machine or the client's Browser memory. Whenever we want to save state related information on the client machine, instead of hitting the Web Server every time, we will go for the client side State Management.
When the user requests a Web page, instead of hitting the Server every time, we can get it from the client machine. Execution in the client side State Management will be faster compared to the Server side state management because the data will be received from the client machine or the Browser memory.
There is less security in the client side state management as the data stores into the client machine or the Browser's memory. We cannot implement the client side state management technique for confidential data like banking applications, where user's bank information should be secure such as user login id, password or pin number etc.

Join the conversation! Your thoughts help the community grow.