When you are working with an application, you open it, do
some changes and then you close it. This is much like a Session.
The computer knows who you are. It knows when you start the
application and when you end. But on the internet there is one
problem: the HTTP address doesn't maintain state so that the web server does not know who you are and what you
do.
By creating a unique cookie for each
user,ASP solves this problem . The cookie is sent to the client and it contains
information that identifies the user. This interface is called
the Session object.
For a user session,the Session object is used to store information about, or
change settings .
Session object is a variable that holds information about one single user, and are
available to all pages in one application. Common information
stored in session variables are name, id, and preferences. The
server creates a new Session object for each new user, and
destroys the Session object when the session expires.
|