asp.net在ashx中使用session需要引入命名空间using System.Web.SessionState;并实现IRequiresSessionState接口。
使用方法:string user=context.Session["username"].ToString()
asp.net在ashx中使用session需要引入命名空间using System.Web.SessionState;并实现IRequiresSessionState接口。
使用方法:string user=context.Session["username"].ToString()