分类:
.net
一般处理程序使用session
先引用session的命名空间
using System.Web.SessionState;
sessin需要调用接口 IRequiresSessionState
public class Handler1 : IHttpHandler, IRequiresSessionState
最后再使用session
context.Session["Key"] = value;
评价
一般处理程序使用session
先引用session的命名空间
using System.Web.SessionState;
sessin需要调用接口 IRequiresSessionState
public class Handler1 : IHttpHandler, IRequiresSessionState
最后再使用session
context.Session["Key"] = value;