ashx使用session

要在ashx中使用session需要实现IRequiresSessionState或者IReadOnlySessionState方法

    public class LoginOutHandler : IHttpHandler, IReadOnlySessionState,IRequiresSessionState
    {}
原文地址:https://www.cnblogs.com/shadowtale/p/2706690.html