If I cycle all the session vars with a for I’ll know each position and value of the session var but I want to know the session var name.
for ( int i=0; i<Session.count; i++) {
Response.write(Session[i].ToString());
}
But I want to retrieve Session var by Name like
Response.write(Session["SessionVarName"].ToString());
Use the
Keysproperty ofSession.