May 27 2020 by
Admin
In this article, we will explain how many types of session and state management are there in ASP.NET Core.
In this article, we will explain how many types of session and state management are there in ASP.NET Core .This can be used to store value using any approach.
Cookies
HTTP cookies and server-side app code . Cookies are small pieces of information stored on the client machine. All cookies are stored in a single file
Session state
The Session state server-side app code. Session state supports several storage options for session variables. Session is a state that is used to store and retrieve values of a user.
You can refer the link for session
How to use Session in ASP.NET Core.
TempData
The TempData is a dictionary object to store data temporarily. It is able to keep data for the duration of a HTP request.
You can refer the link for TempData
How to use TempData, Peek and Keep in ASP.NET MVC.
Query strings
A Query string is a collection of characters input to a web browser. It is helpful when we want to transfer a value from one page to another with limited amount of data.
Hidden fields
The hidden value of type defines a form field that is never displayed to the user . The user cannot change the value of the field, or interact with it.
Note: All contents are copyright of their authors.