Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List Session Variables and values 1

Status
Not open for further replies.

fischadler

Programmer
Joined
May 31, 2002
Messages
258
Location
MT
The code below list the form inputs retreived from the previous page:

FOR EACH item IN Request.Form
Response.Write item & &quot;=&quot; & Request.Form(item) & &quot;<BR>&quot;
NEXT

Is it possible to list all the available session variables and values in some similar fashion?

Thanks
 
<%
Session(&quot;username&quot;)=&quot;Donald Duck&quot;
Session(&quot;age&quot;)=50dim i
For Each i in Session.Contents
Response.Write(i & &quot;<br />&quot;)
Next
%>

eg:

_____________________________________________________________________
onpnt2.gif

The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page
 
did n't copy well did it
Code:
<%
Session(&quot;username&quot;)=&quot;Donald Duck&quot;
Session(&quot;age&quot;)=50
dim i
For Each i in Session.Contents
  Response.Write(i & &quot;<br />&quot;)
Next
%>

_____________________________________________________________________
onpnt2.gif

The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top