When you create a Web service, you specify whether it should be executed within the context of an HTTP session. Associating Web services with a session enables an application to maintain state across Web service calls and to use login information for security purposes.

To allow multiple Web services to share a session, two things need to happen:

This chapter includes an example of a helper class that you can use to simplify cookie management. See Writing a CookieContainer Class.

 
loading table of contents...