using System.Web;
using System;
using System.Web.SessionState;//需要引用

/// <summary>
/// MyHandler 的摘要说明
/// </summary>
public class MyHandler : IHttpHandler, IReadOnlySessionState //需要实现IReadOnlySessionState接口
{
    public MyHandler() { }
    public void ProcessRequest(HttpContext context) 
    {
        context.Response.Write(context.Session["aa"]);
    }
    public bool IsReusable
    {
        get { return false; }
    }

}

 

相关文章:

  • 2021-12-28
  • 2021-06-29
  • 2022-12-23
  • 2021-08-18
  • 2021-10-09
  • 2021-10-03
  • 2022-01-05
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
  • 2021-09-25
  • 2021-12-29
  • 2022-01-03
相关资源
相似解决方案