一般处理程序中 httpContext.current.session为null的解决办法

在该一般处理程序中 添加引用:

using System.Web.SessionState;

给该类添加 接口:
public class AddArticle : IHttpHandler,IRequiresSessionState

 

你可能感兴趣的:(session)