ashx使用session

using System.Web.SessionState;     //第一步:导入此命名空间
public class checkCookie : IHttpHandler ,IRequiresSessionState

原文地址:https://www.cnblogs.com/mattins/p/1838677.html