1. WCF session 与Asp.NET session是两个不同的概念
2.在WCF中可使用Asp.net session
web.config
<serviceHostingEnvironment aspNetCompatibilityEnabled="true">
Class
[ServiceContract(Namespace = "", SessionMode = SessionMode.Allowed)]
public interface IHelloWorldWCF
{
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class HelloWorldWCFServices : IHelloWorldWCF
{ ......
我用另外一种方式解决了 但还是谢谢 我去试试