摘要:
一般处理程序ashx获取Session不能想page页面那样直接Session["user"]解决方法:实现IRequiresSessionState接口,举例:public class Aaa: IHttpHandler,IRequiresSessionState { public void ProcessRequest(HttpContext context) { string account = context.Session["user"].ToString(); } } 阅读全文