Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
Session Object
All Collections
All Events
All Methods
All Objects
All Properties
Application.StaticObjects
COLLECTION PROPERTY: Session.StaticObjects
Session.
StaticObjects
(Key)
The
StaticObjects
collection property contains a list of all of the items that have been created and added to the
Session
object using the HTML <OBJECT> tag.
You can iterate through a collection using a
For Each item in ... Next
loop.
There is one mandatory argument.
Key
The
Key
argument is the name of the item to retrieve.
Code:
----------Global.asa-------------
<OBJECT RUNAT=Server SCOPE=Session ID=MyInfo PROGID="MSWC.MyInfo">
</OBJECT>
<OBJECT RUNAT=Server SCOPE=Session ID=MyConnection PROGID="ADODB.Connection">
</OBJECT>
<OBJECT RUNAT=Server SCOPE=Session ID=MyADRot PROGID="MSWC.ADRotator">
</OBJECT>
-----------File.asp-----------------
<%
For Each Item In
Session.StaticObjects
Response.Write Item & "<BR>"
Next
%>
Output:
MyInfo
MyConnection
MyADRot
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information