当前位置: 代码迷 >> ASP >> asp.net正常处理程序中使用session
  详细解决方案

asp.net正常处理程序中使用session

热度:253   发布时间:2013-09-29 11:07:08.0
asp.net一般处理程序中使用session

一般处理程序中默认无法使用session

使用session 需要引入System.Web.SessionState命名空间

并实现 IRequiresSessionState接口

调用时如下

System.Web.HttpContext.Current.Session["username"] = str_username;


  相关解决方案