Click here to Skip to main content
15,905,028 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In state Management Asp.net what is exactly client side and server side means ? why cookies are client side and session are server side
Posted

Server Side means at the Server, where your Application is hosted and Client Side means the User's Browser, who is trying to consume your application.

Read the below articles to have a full picture in your mind.
1. ASP.NET State Management Recommendations[^]
2. State Management in ASP.NET - Introduction[^]
 
Share this answer
 
Client side : Is the code/data, runs/saves in the users browser

Server Side : Is the code/Data, runs/Saves at the server side.

Cookies:
When the user sends a request to the server, the server creates a cookie and attaches a header and sends it back to the user along with the response. The browser accepts the cookie and stores it at a specific location on the client's machine

Session:
Session is one of the most common way which is being used by developers to maintain the state of the application. The Session basically stores the values as a dictionary collection in key/value pairs. It completely utilizes server resources to store the data. It is a secure way of storing data, since the data will never be passed to the client.
 
Share this answer
 
Client side state management stores the state information on the client machine and this state information has to accompany each request to the server side. On the contrary, server side state management keeps the state information on the server side.
Read more: A Beginner's Tutorial on ASP.NET State Management[^]
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900