首先引用:using System.Web.SessionState; 

再在 IHttpHandler

后面加逗号加IReadOnlySessionState:IHttpHandler,IReadOnlySessionState

context.Session["xxx"]就可以取到session的值

04-24 23:36