top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is Session object? Describe in detail.

+1 vote
361 views
What is Session object? Describe in detail.
posted Jan 6, 2015 by Jayshree

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

HTTP is a stateless protocol; it can't hold the user information on web page. If user inserts some information, and move to the next page, that data will be lost and user would not able to retrieve the information. For accessing that information we have to store information. Session provides that facility to store information on server memory. It can support any type of object to store. For every user Session data store separately means session is user specific.

Storing the data in Session object.

Session [“message”] = “Hello World!”;

Retreving the data from Session object.

Label1.Text = Session[“message”].ToString();

answer Jan 7, 2015 by Shivaranjini
...