一般处理程序中 httpContext.current.session为null的解决办法
在该一般处理程序中 添加引用:
using System.Web.SessionState;
给该类添加 接口:
public class AddArticle : IHttpHandler,IRequiresSessionState
在该一般处理程序中 添加引用:
using System.Web.SessionState;
给该类添加 接口:
public class AddArticle : IHttpHandler,IRequiresSessionState