摘要: 原文地址:http://www.liuwu.net/post/use-session-state-in-aspnet-webservice.aspx在使用asp.net编写webservice时,默认情况下是不支持session的,但我们可以把WebMethod的EnableSession选项设为true来显式的打开它,请看以下例子:1 新建网站WebSite2 新建web服务WebService.asmx,它具有以下两个方法: [WebMethod(EnableSession = true)]public string Login(string name){ Context.Session[ 阅读全文
posted @ 2011-03-22 17:31 Specialaspnet 阅读(556) 评论(2) 推荐(0)