ashx中使用session

1、using System.Web.SessionState;

2、实现接口IRequiresSessionState

public class Handler : IHttpHandler,IRequiresSessionState{

  string code = context.Session["code"].ToString();

}

posted @ 2015-05-08 13:37  jiduoduo  阅读(136)  评论(0编辑  收藏  举报