Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sam HobbsRank #107 · 20.5K reputationPosted Aug 1, 2022, 2:33 AM EDT
See:
https://docs.microsoft.com/en-us/previous-versions/aspnet/75x4ha6s(v=vs.100)
https://www.c-sharpcorner.com/UploadFile/b926a6/state-management-concept-in-Asp-Net
https://www.c-sharpcorner.com/UploadFile/2072a9/state-management-in-Asp-Net
State Management is in both the client and the server whereas Session state is only server-side and one of multiple possible ways to maintain state. The Microsoft article says application state, session state, and profile properties all store data in memory on the server.
Session state is a subset of State Management.
Sachin SinghRank #66 · 26.2K reputationPosted Aug 1, 2022, 1:33 AM EDT
It's not about ASP.NET Core or ASP.NET MVC or any other web framework available. It is all about how http works.
With HTTP each request is a new request that have no relation with the previous one.
Now, come to the point,
You can think of statement management as a subset of Session Management, State Management emphasis on maintaining the Form's value (input, textarea, dropdown etc) from client (HTML page) to Sever (Controller/Razor pages code behind in ASP.NET Core) or from one Action to Other.
While Session Management emphasise on keeping the User related value as long as he doen't logs out. Meaning from Login till logout so that you would know that it is the same user.
Amit MohantyRank #112 · 20K reputationPosted Aug 1, 2022, 1:28 AM EDT