Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

ASP Session Object StaticObjects Collection

The StaticObjects collection contains all the objects created in Global.asa with the <OBJECT> tag and given session scope. The collection can be used to retrieve the value of a specific item, or you can use an iterator to retrieve all the items in the collection.

Syntax: ASP Session Object StaticObjects Collection

Session.StaticObjects( key )

Parameters: ASP Session Object StaticObjects Collection

key

The item to retrieve.

Remarks: ASP Session Object StaticObjects Collection

You can use an iterating control structure to loop through the keys of the StaticObjects collection. This is demonstrated in the following example.

<%

Dim objprop

For Each objprop in Session.StaticObjects

Response.write(objproperty & " : " & Session.StaticObjects(objprop) & "<BR>") 

Next

%>

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.