Session is null in ashx and in web api
摘要:
Session is null in ashxIf the HttpContext.Current.Session is null in your .ashx handler, add System.Web.SessionState.IReadOnlySessionState to your class declaration, like this:public class MyHandler : IHttpHandler, System.Web.SessionState.IReadOnlySessionStateAlso, if you need to write to Session[], 阅读全文