public ActionResult index()
        {
            Session["a"] = "aaa";
            System.Web.HttpContext.Current.Session["b"] = "bbb";            
            Response.Redirect("about");
            //return Content("");
            return Redirect("about");
        }

        public ActionResult about()
        {
            var a1 = Session["a"];
            var a2 = System.Web.HttpContext.Current.Session["a"];

            var b1 = Session["b"];
            var b2 = System.Web.HttpContext.Current.Session["b"];
            return Content(a1.ToString() + b2.ToString());
        }

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
  • 2022-02-22
  • 2022-12-23
  • 2022-03-04
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2021-06-18
  • 2022-12-23
相关资源
相似解决方案