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.