ASP Session Object
A Session object stores information about, or change settings for a user session.
 |
Try it Yourself - Examples |
Set and return the LCID
Set or return 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
Return
a unique id for each user. The id is generated by the server.
A session's timeout
Set and return the timeout (in minutes) of a session.
Session Object
When you are working with an application on your computer, 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 open the application and when you close it. However, on the internet there is one
problem: the web server does not know who you are and what you do, because the HTTP address doesn't 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 identifies the user. This
interface is called the Session object.
The Session object stores information about, or change settings for a user session.
Variables stored in a 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.
The Session object's 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
Make your web applications look like a million bucks
|
|
Most web applications today use boring methods to present data to their viewers using grids or simple HTML tables. FusionCharts induces "life" into the web applications by converting monotonous data into lively charts, gauges & maps.
FusionCharts works with all technologies like ASP, ASP.NET, PHP, ColdFusion, Ruby on Rails, JSP, HTML pages etc.
and connects to any database to render animated & interactive charts. It takes less than 15 minutes and no expertise
whatsoever to build your first chart and just a glance of it to captivate your audience. This fact is endorsed by our
12,000 customers and 150,000 users which include a majority of the Fortune 500 companies.
And yeah, your applications could look like a million bucks by spending just $69.
So go ahead, download your
copy of FusionCharts and start "wow-ing" your customers now!
|
 |
W3Schools' Online Certification Program
The perfect solution for professionals who need to balance work, family, and career building.
More than 4000 certificates already issued!
|
The HTML Certificate documents your knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
|