public class Handler1 : IHttpHandler, IRequiresSessionState

需要继承 IRequiresSessionState接口,告诉程序要使用session!

System.Web.HttpContext.Current.Session["userinfo"];

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2021-07-31
猜你喜欢
  • 2021-12-13
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
  • 2021-07-31
  • 2021-09-10
相关资源
相似解决方案