Ways to retain variables between requests - ASP.NET

What are the ways to retain variables between requests?

Following are the ways to retain variables between requests:

Context.Handler
This object can be used to retrieve public members of the web form from a subsequent web page.

Querystring
Querystring is used to pass information between requests as part of the web address. Since it is visible to the use, we can't use it to send any secured data.

Cookies
Cookies are stored small amount of information on a client. But we can't rely on cookies since many clients can refuse cookies.

View state
View state stores items added to a page’s ViewState property as hidden fields on the page.

Session state
Session state stores items that are local to the current session.

Application state
Application state stores items that are available to all users of the application.
What are Cookies collection in ASP.NET?
ASP.NET - What are Cookies collection in ASP.NET? - Cookies are text files that store information about the user...
What is the Common Language Specification (CLS)?
ASP.NET - Common Language Specification (CLS) - The CLS contains constructs and constraints which provides a guideline for library and compiler writers.....
What is Shared (static) member?
ASP.NET - What is Shared (static) member? - It belongs to the type but not to any instance of a type....
Post your comment