VB.NET
Dim strKey as string
For Each strKey In Session.Keys
Response.Write(strKey + ' : ' + Session(strKey).ToString() + '<br>')
Next
C#
foreach (string strKey in Session.Keys)
{
Response.Write(strKey + ' : ' + Session[strKey].ToString() + '<br>');
}
Share with