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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display Session Variable Names & Values

Status
Not open for further replies.

saw15

Technical User
Jan 24, 2001
468
US
Looking for a look that I can add to the bottom of an ASP page to display the session variables & their values.

Currently I use the following to display the names, but not sure what to add to display the names & values?

Curently use this:

<%
dim i
For Each i in Session.Contents
Response.Write(i & &quot;<br>&quot;)
Next
%>

Help is appreciated.
 

<%for each item in session.Contents%>
Session Name = <%=cstr(item)%>, Session Value = <%=Session(item)%><br>
<%next%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top