asp.net WebService 中使用Session 新建一个webservice时默认方法 [WebMethod] 如果要使用session [WebMethod(EnableSession = true)] session使用方法不变 session["aaa"]