asp.net 类库中使用Session

添加System.Web引用,然后导入以下两个命名空间
using System.Web;
using System.Web.Security;

然后取值:
object o = HttpContext.Current.Session["***"];

你可能感兴趣的:(asp.net 类库中使用Session)