ashx文件要使用Session,必须实现Session接口;
//第一步:导入此命名空间
//第二步:实现接口 到此就可以像平时一样用Session了

using System;
using System.Web;
using System.Web.SessionState;

public class checkCookie : IHttpHandler ,IRequiresSessionState {

public void ProcessRequest (HttpContext context)
{
   context.Session["wotuituicode"];
}

 

ashx文件要使用Session

相关文章:

  • 2021-09-15
  • 2022-12-23
  • 2022-01-19
  • 2021-09-14
  • 2021-08-18
  • 2022-12-23
猜你喜欢
  • 2022-02-23
  • 2021-10-26
  • 2021-09-17
  • 2021-11-26
  • 2021-07-12
  • 2021-12-28
相关资源
相似解决方案