如何在ashx页面获取Session值

来源:互联网 发布:冬天保湿面霜推荐 知乎 编辑:程序博客网 时间:2024/05/22 06:26
    public class Ajax_Test : IHttpHandler, IRequiresSessionState     {        public void ProcessRequest(HttpContext context)        {            context.Response.Write("test");            context.Response.End();        }        public bool IsReusable        {            get            {                return false;            }        }}
实现IRequiresSessionState 接口即可。