各位大侠:创建Session会话后,在别的页面检测不到Session值,是怎么回事情?
    代码如下:
             public void admincheck(int uid)
{
int type=0;
string admin_sql="select u_type from customer where u_id="+uid.ToString();
try
{
Open();
myCommand=new OleDbCommand(admin_sql,myConnection);
dr=myCommand.ExecuteReader();
if (dr.Read())
{
Session["type"]=dr[0].ToString();
type=Convert.ToInt32(dr[0].ToString());
}
dr.Close();
}
catch(OleDbException ex)
{
System.Web.HttpContext.Current.Response.Write(ex.ToString());
}
finally
{
               
Close();
}
}