在默认情况下ashx是无法处理session的,但是
只要在继承IRequiresSessionState 接口就能进行session的处理了
1 public class Handler1 : IHttpHandler, System.Web.SessionState.IRequiresSessionState
2 {
3 public void ProcessRequest(HttpContext context)
4 {
2 {
3 public void ProcessRequest(HttpContext context)
4 {