Everything2
Near Matches
Ignore Exact
Full Text
Everything2

session

created by xdc

(idea) by yossarianc (1 mon) (print)   ?   (I like it!) Mon Oct 08 2001 at 14:57:06

ASP Session Object

A Session object is automatically created by the web server when a web page from the application is requested by a user who does not already have a session. The Session object can be used to store information concerning the user session, since variables in in the object are not discarded when the user jumps between pages in the application.

The server destroys the Session object when the session expires or is abandoned. By default, a session expires after 20 minutes of inactivity by the user.

Properties

CodePage Property
Specifies the server codepage that will be used to display dynamic content.

LCID Property
Specifies the locale identifier that will be used to display dynamic content.

SessionID Property
Returns the session identifier for a user session.

Timeout Property
Specifies the length of time, in minutes, before an idle session is terminated.

Collections

Contents Collection
A collection of all of the items which have been created and added to the Session object during a client's sessions through script commands, such as the Server.CreateObject command, rather than by using the HTML <OBJECT> tag.

StaticObjects Collection
A collection of all of the items which have been created and added to the Session object during client sessions by using the HTML <OBJECT> tag, rather than using script commands.

Methods

Abandon Method
Terminates a user session, destroys all data and objects contained in the Session object, and releases its resources.

Contents.Remove Method (v 3.0)
The Contents.Remove method is used to remove a single item from a Contents collection.

Contents.RemoveAll Method (v 3.0)
The Contents.RemoveAll method is used to remove all items from a Contents collection.

Events

OnEnd Event
The OnEnd event occurs when a Session expires. The signal of this event will run a handler script in the Global.asa file, if the script exists.

OnStart Event
The OnStart event occurs before the start of any new session by a user. The signal of this event will run a handler script in the Global.asa file, if the script exists.

Example OnStart handler script. This script increments an Application scope counter, used to count the number of visitors (unique sessions) since the last time the application was restarted.

  <script language="vbscript" runat="server">
    Sub Session_OnStart
      Application("VisitorCount") = Application("VisitorCount") + 1
    End Sub
  </script>


Back to ASP Objects



Resources:
http://www.devguru.com
http://msdn.microsoft.com/asp/

All code is my own (but I am not responsible for your perception of it)

(v 3.0) indicates that this feature is only available with ASP Version 3.0, which shipped standard with IIS 5.0

(definition) by Webster 1913 (print) Wed Dec 22 1999 at 3:03:25

Ses"sion (?), n. [L. sessio, fr. sedere, sessum, to sit: cf. F. session. See Sit.]

1.

The act of sitting, or the state of being seated.

[Archaic]

So much his ascension into heaven and his session at the right hand of God do import. Hooker.

But Viven, gathering somewhat of his mood, . . . Leaped from her session on his lap, and stood. Tennyson.

2.

The actual sitting of a court, council, legislature, etc., or the actual assembly of the members of such a body, for the transaction of business.

It's fit this royal session do proceed. Shak.

3.

Hence, also, the time, period, or term during which a court, council, legislature, etc., meets daily for business; or, the space of time between the first meeting and the prorogation or adjournment; thus, a session of Parliaments is opened with a speech from the throne, and closed by prorogation. The session of a judicial court is called a term.

It was resolved that the convocation should meet at the beginning of the next session of Parliament. Macaulay.

Sessions, in some of the States, is particularly used as a title for a court of justices, held for granting licenses to innkeepers, etc., and for laying out highways, and the like; it is also the title of several courts of criminal jurisdiction in England and the United States.

Church session, the lowest court in the Presbyterian Church, composed of the pastor and a body of elders elected by the members of a particular church, and having the care of matters pertaining to the religious interests of that church, as the admission and dismission of members, discipline, etc. -- Court of Session, the supreme civil court of Scotland. -- Quarter sessions. Eng.Law See under Quarter. -- Sessions of the peace, sittings held by justices of the peace. [Eng.]

 

© Webster 1913.


printable version
chaos

Measuring time by setting fire to various things seisiún blowing sessions jam session
inquorate deep link Harold the Giraffe Presidium
Irish traditional music House of Commons Ignition Layer 1
transport layer nbtstat Two-word poem M728 Combat Engineer Vehicle
Unicode Middle Eastern Scripts fiddle Meteora Web Services for Remote Portals
Notre Dame Du Haut Student Congress Web privacy test match
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Nodes your grandma would have liked:
What I learned from the skateboarders outside my window
Rules of program optimization
Trigonometric ratios
John Wayne Gacy, Jr.
All ravens are black
Poseidon Family
LZ Waterloo
Words that are supposedly untranslatable
Orion Nebula
Labor Day Cleanup
Villages in Germany are three kilotons apart
Seven words you can never say on television
The Gone, Growing in Number
New Writeups
tejasa
Cranberry Cornbread(recipe)
Dreamvirus
Brighton Bombing(event)
Ariloulaleelay
'Appendices' to a 'Report' on THE HIVE×BODY MACHŸNE(log)
Timeshredder
WALL-E(review)
sitaraika
Win-laik-pya(idea)
whitelight
The abysmalists(poetry)
Hazelnut
How to solve the obesity epidemic and the oil price hike in one fell swoop(idea)
raincomplex
Spitting out teeth like ampersands(place)
wertperch
July 4, 2008(personal)
Andrew Aguecheek
Keeping In Mind(fiction)
Heitah
The Pit of Life and Death(place)
alyssa-cruz
Spitting out teeth like ampersands(person)
antigravpussy
she is his sounding board(event)
Heitah
Four day work week(idea)
Simulacron3
The Brain and Reality(essay)
E2 is a by-product of the existence of The Everything Development Company