|
Session object
This object is used to store information about,
or alter settings for a user session. this is created for each
visitor the first time they request an ASP page. This remains
until the timeout expires .
Collection
| Collections |
Description |
| Contents |
collection of variables and values that are
stored in a particular Session object these are not specified
by an <OBJECT> tag. |
| StaticObjects |
collection of variables that are stored in
a particular Session object using an <OBJECT> tag |
Properties
| Property |
description |
| CodePage |
defines the code page that is used to display
content sent to the browser. This is the numeric value of
different character sets. e.g 1252 is western alphabet and
1200 is universal alphabet |
| LCID |
defines the locale identifier of the page
sent to the browser . e.g UK is 0809 , US is 0409 and france
is 040c |
| SessionID |
returns the identifier of the session which
is generated bt the server when a session is created |
| Timeout |
defines the timeout for a Session object in
minutes . Default is 20 minutes |
Methods
| Method |
description |
| Contents.Remove |
removes a named variable from the Contents
collection |
| Contents.RemoveAll |
removes all variables from the COntents collection |
| Abandon( ) |
ends the current user Session and destroys
the current Session object |
Events
| Event |
description |
| onStart |
occurs when an ASP user session starts before
the first page that a user requests is executed . Initialize
variables , run code and create objects here |
| onEnd |
occurs when a session ends . This is when
the timeout elapses . All variables in the session are destroyed. |
back to tutorials
|
|
Sponsors
|