The Session object is used to store information about, or change settings for a user session. Variables stored in the Session object hold information about one single user, and are available to all pages in one application.

Collections

  • Contents - Holds every item added to the session with script commands
  • StaticObjects - Holds every object added to the session with the <object> tag, and a given session
  • Contents.Remove(item/index) - Deletes an item from the Contents collection
  • Contents.RemoveAll() - Deletes every item from the Contents collection

Properties

  • CodePage - Sets the code page that will be used to display dynamic content
  • LCID - Sets the locale identifier that will be used to display dynamic content
  • SessionID - Returns the session id
  • Timeout - Sets the timeout for the session

Method

  • Abandon - Kills every object in a session object



Practice Excercise Practice now