Please visit our sponsors !
ASP Session Object
The ASP Session object is used to store information about, or
change settings for a user session.
Examples
Set and return the LCID
This example demonstrates the "LCID" property. This property sets or
returns an integer that specifies a location or region. Contents like date,
time, and currency will be displayed according to that location or region.
Return the SessionID
This example demonstrates the "SessionID" property. This property returns
a unique id for each user. The id is
generated by the server.
A session's timeout
This example demonstrates the "Timeout" property. This example sets
and returns the timeout (in minutes) for the session.
Session Object
The ASP 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. 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. Its collections, properties, methods, and
events are described below:
Collections
Collection |
Description |
Contents |
Contains all the items appended to the session through a script command |
StaticObjects |
Contains all the objects appended to the session with the HTML
<object> tag |
Properties
Property |
Description |
CodePage |
Specifies the character set that will be used when
displaying dynamic content |
LCID |
Sets or returns an integer that specifies a location or
region. Contents like date, time, and currency will be displayed according
to that location or region |
SessionID |
Returns a unique id for each user. The unique id is
generated by the server |
Timeout |
Sets or returns the timeout period (in minutes) for the
Session object in this application |
Methods
Events
Jump to: Top of Page
or HOME or
Printer friendly page
Search W3Schools:
What Others Say About Us
Does the world know about us? Check out these places:
Dogpile
Alta Vista
MSN
Google
Excite
Lycos
Yahoo
Ask Jeeves
We Help You For Free. You Can Help Us!
W3Schools is for training only. We do not warrant its correctness or its fitness for use.
The risk of using it remains entirely with the user. While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2002 by Refsnes Data. All Rights Reserved
|