摘要: 在使用asp.net编写webservice时,默认情况下是不支持session的,但我们可以把WebMethod的EnableSession选项设为true来显式的打开它,请看以下例子:1 新建网站WebSite2 新建web服务WebService.asmx,它具有以下两个方法:[WebMethod(EnableSession = true)]public string Login(strin... 阅读全文