I am trying to access the session variables through this class.
But when i try ,
System.Web.SessionState.HttpSessionState s = System.Web.HttpContext.Current.Session;
System.Collections.Specialized.NameValueCollection.KeysCollection c = System.Web.HttpContext.Current.Session.Keys;
c = s.Keys;
for(int i=0;i<c.Count;i++)
{
string session_name=c.Get(i).ToString();
if(Session[session_name]==null)
{
Response.Redirect(redirect url);
return;
}
}
But i did'nt get all session variables that i have created.
Any solution.