default1.aspx page-
[WebMethod(EnableSession=true)]
public static void createdb(string dbname)
{
HttpContext.Current.Session["database"] = dbname;
}
and i want to access and use session value to another page for instance default2.aspx
here is my code for retrieving session value
string sess_val = HttpContext.Current.Session["database"].ToString();
but session is null
plz help me out