a.aspx.cs
//获取a中的id
HttpCookie objCookie = new HttpCookie("myCookie", id);
Response.Cookies.Add(objCookie);
b.aspx.cs
//获取a中的id
string id = Request.Cookies["myCookie"].Value;
a.aspx.cs
//获取a中的id
HttpCookie objCookie = new HttpCookie("myCookie", id);
Response.Cookies.Add(objCookie);
b.aspx.cs
//获取a中的id
string id = Request.Cookies["myCookie"].Value;