// Display the session cyclically in vs2008:
Method 1:
Response. Write ("<br> all session values: <br> ");
Foreach (string key in session. Contents)
{
Response. Write (key. tostring () + ":" + session [Key]. tostring () + "<br> ");
}
Method 2:
For (INT I = 0; I <session. Contents. Count; I ++)
{
Response. Write (session. Keys [I]. tostring () + ":" + session [I]. tostring () + "<br> ");
}
// Display cookies cyclically in vs2008:
Response. Write ("<br> all values of cookies: <br> ");
For (INT I = 0; I {
Response. write (httpcontext. current. request. cookies. keys [I] + ":" + httpcontext. current. request. cookies [I]. value. tostring () + "<br> ");
}
// display application cyclically in vs2008:
response. write ("
all application values:
");
for (INT I = 0; I {< br> response. write (httpcontext. current. application. keys [I] + ":" + httpcontext. current. application [I]. tostring () + "
");
}