ashx中使用session

MSDN中查阅必须实现System.Web.SessionState.IRequiresSessionState

public class getkucun : IHttpHandler,IRequiresSessionState {

这样就可以使用session了

原文地址:https://www.cnblogs.com/laogao/p/1798898.html