AdminInfo user = new AdminInfo(); 封装类 Session["user"] = user; Session.Timeout = 20; //session 保存时间 Response.Redirect("admin/Main.aspx");//跳转页面 AdminInfo admin = Session["user"] as AdminInfo; //跳转页面接收