asp.net WebService 中使用Session

新建一个webservice时默认方法

[WebMethod]

如果要使用session

[WebMethod(EnableSession = true)]

session使用方法不变 session["aaa"]

原文地址:https://www.cnblogs.com/hzj3099/p/1516766.html