首先引用:using System.Web.SessionState;
再在 IHttpHandler
后面加逗号加IReadOnlySessionState:IHttpHandler,IReadOnlySessionState
context.Session["xxx"]就可以取到session的值
时间: 2024-11-19 09:25:35
首先引用:using System.Web.SessionState;
再在 IHttpHandler
后面加逗号加IReadOnlySessionState:IHttpHandler,IReadOnlySessionState
context.Session["xxx"]就可以取到session的值