<?
var i = 1;
var cc = new Enumerator(Request.Cookies);
// cc is short for
"cookie collection"
// enumerator through the cc
collection by cc.moveNext() until
cc.atEnd()
for (cc; !cc.atEnd();
cc.moveNext(),
i++) { //
if not at the end move to next "collection"
Response.write("<TR>"
+
"<TD>" + i + "</TD>" +
"<TD>" + cc.item()
+ "</TD>" +
"<TD+ Request.Cookies(cc.item())
+ "</TD>" +
"</TR>");
}
?>
<SCRIPT>
// display
the cookie
document.write(document.cookie);
</SCRIPT> |