ashx中使用session
作者:Dreamer
出处:http://www.dreamerlzy.com/blog/article/detail/ashx-session
说明:本文版权归作者所有,欢迎转载,但未经作者同意时,请在文章页面明显位置给出原文链接,否则保留追究法律责任的权利。
参考:
无
using System; using System.Web; using System.Web.SessionState;//第一步:导入此命名空间 //第二步:实现接口IRequiresSessionState public class checkCookie : IHttpHandler ,IRequiresSessionState { public void ProcessRequest (HttpContext context) { } }