Quickly display all session variable info

Session keys only

for(int i=0;i<Session.Count;i++)
{
   Response.Write(Session.Keys[i].ToString()+": "+Session[i].ToString()+"<br>");
}


All Request keys

for(int i=0;i<Request.Params.Count;i++)
{
   Response.Write(Request.Params.Keys[i].ToString()+": "+Request.Params[i].ToString()+"<br>");
}

Print | posted on Friday, July 09, 2004 1:05 PM

Feedback

# re: Quickly display all session variable info

left by Eddie Pequeno at 1/27/2006 10:38 AM Gravatar
this is awesome info.

Thanks.

-Eddie P
Title  
Name
Email (never displayed)
Url
Comments   
Please add 8 and 1 and type the answer here: