1、要在一般处理程序中获取其他页面的session值,需要引用名空间:

using System.Web.SessionState;

2、然后继承一个接口:IRequiresSessionState

IRequiresSessionState

使用:

context.Session["key"];

相关文章:

  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2022-02-21
  • 2021-07-27
  • 2021-07-16
  • 2021-10-01
  • 2021-09-10
猜你喜欢
  • 2022-12-23
  • 2021-09-25
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
相关资源
相似解决方案