Session management

Session management in .net:

In This post we explain Session Management in the ASP.NET Programming. The Web API and how to use Session Where to Use. In Asp.net Sessions perform the work like a global variable which is Use stores and get information same we can store and Retrieve Information from Session. Also Discuss Advantage and Disadvantage of Session.

Session provides a Technique in asp.net by which we can store and fetch data/information of the user that is store (or display) into one page and we want to fetch this information on another pages so we can say that Session is work of website global variable,In asp.net session basically it is as object, Session is work as object. For more understanding we take a Example in .net Programming:

Declare Session/ make a Session:

Session["<Name>"] = <Value>;
In .Net Programming we use this type of syntax for Creating a session. Here Session is Keyword,<name> is user defend name of session and <value> is a user define information that the user want to store in to this Session.

Example:

 In asp.net we can create Session as like

Session ["UserName"]=LblUserName.Text;

In this example we store the "LblUserName" value in the Session variable "UserName". Any text that can be written in the LblUserName is stored in the Session variable "UserName".

Advantages  Session State In asp.net are:

  • Better security of information in asp.net Programming.
  • Use of Session also reduced bandwidth.
  • Session Management is pa part of State Management
  • More Advantages And use of Session.

Disadvantages Session state In asp.net are:

  • Resource consumption in Asp.net server.
  • Extra code. 

Other Post :



Here we give the list of Examples related to gridview:

Popular posts from this blog