State Diagnostics
Description
This script displays all standard and user-defined items in the following objects:
- Server Variables
- Session Object
- Form Object
- Querystring Object
- Cookies Object
It can be used as both a stand-alone diagnostic tool which will simply display the
current dynamic state items, or as an end-point for testing form data while still
showing current dynamic state items.
Single Compressed Download
Individual Components
Installation & Setup
-
Save the source code file into a directory somewhere within your webroot, naming it code.asp.
-
Save the sample page into the same directory, naming it demo.htm.
User Guide
To use in the simple display mode simply browse to the page, you will see the available session and server
variables being displayed. Unfortunately this is all this mode can display since it only has access to data
used as part of the request or which is held in session variables.
In order to view the page in its more complex mode you need to have used a form and directed the results at this
page. This is what the supplied sample page does. Simply change whatever you want in the form them submit it
and watch as the variables it passed are displayed for you to read, displaying both the session contents, server
variables and any data passed via a form using either the
get or
post method.