Monday, December 17, 2007

How to get all information in the Session object

How to get all information in the Session object

S T E P - 1

- The Session object has two object collections - Contents and Staticobjects:

- Session.Contents includes all variables that are no created by the :

<%

Dim Item

For Each Item in Session.Contens

Response.write(Item & "= " & Session.Contents(Item) & "
")

Next

%>

S T E P - 2

- Session.Staticobjects included all objects created by the :

<%

Dim Item

For Each Item in Session.staticobjects

Response.write(Item & "= " & Session.staticobjects(Item) & "
")

Next

%>

No comments: