* * *
The Session object is used to store information about a user session, or to change the settings of a user session.
* * *
## Session Object
When you work with an application on your computer, you open it, make some changes, and then close it. This is much like a Session. The computer knows who you are. It knows when you open and close the application. However, on the Internet there is a problem: the Web server does not know who you are or what you do, because the HTTP address cannot maintain state.
ASP solves this problem by creating a unique cookie for each user. The cookie is sent to the user's computer, and it contains information that can be used to identify the user. This interface is called the Session object.
The Session object is used to store information about a user session, or to change the settings of a user session.
Variables stored in the Session object store information about a single user, and are available to all pages in the application. The common information stored in session variables is name, id and parameters. The server creates a new Session for each new user, and destroys the Session object when the session expires.
* * *
## When Does a Session Start?
A session starts when:
* A new user requests an ASP file, and the Global.asa file references the Session_OnStart subroutine
* A value is stored in a Session variable
* A user requests an ASP file, and Global.asa uses an