添加System.Web引用,然后导入以下两个命名空间
using System.Web;
using System.Web.Security;
然后取值:
object o = HttpContext.Current.Session["***"];
asp.net 类库中使用Session
最新推荐文章于 2018-12-26 01:14:00 发布
添加System.Web引用,然后导入以下两个命名空间
using System.Web;
using System.Web.Security;
然后取值:
object o = HttpContext.Current.Session["***"];