首页 > 技术文章 > ashx 中获取 session获取信息

hanxingli 2018-12-20 19:16 原文

1.在应用程序中获取session,System.Web.HttpContext.Current.Session;

2.命名空间如下:IRequiresSessionState

调用方法

public class  ProjectInfo : IHttpHandler,System.Web.SessionState.IRequiresSessionState
{

}

推荐阅读