首先引用:using System.Web.SessionState;
再在 IHttpHandler
后面加逗号加IReadOnlySessionState:IHttpHandler,IReadOnlySessionState
context.Session["xxx"]就可以取到session的值
首先引用:using System.Web.SessionState;
再在 IHttpHandler
后面加逗号加IReadOnlySessionState:IHttpHandler,IReadOnlySessionState
context.Session["xxx"]就可以取到session的值
转载于:https://www.cnblogs.com/zyg316/p/5797779.html