I want to display all the session information of my asp.net page (aspx) in the page. How can I do that?
The programming language is C#.
These two methods is working for me, improved and corrected David's answer slightly:
for (int i = 0; i < Session.Count; i++)
{
var crntSession = Session.Keys[i];
Response.Write(string.Concat(crntSession, "=", Session[crntSession]) + "
");
}
foreach (var crntSession in Session)
{
Response.Write(string.Concat(crntSession , "=", Session[crntSession .ToString()]) + "
");
}