6.3. Leveraging the ASP.NET Framework
.NET Web services execute within the ASP.NET runtime and can leverage many of ASP.NET's useful features. This section explains how you can take advantage of features such as ASP.NET sessions, output caching, and distributed transactions (a feature of .NET Enterprise services). There are many other features of ASP.NET that don't make much sense in the context of Web services. For example, cookie-less sessions are very cool and useful for Web applications but they rely on URL munging, which doesn't work for Web services.
6.3.1. Using ASP.NET Sessions
When a client invokes a Web method on your service, a new instance of your Web service class is created to serve that request. Therefore, a Web service class by ...