« Threading Reference, Process, AppDomain, Monitor, WaitHandles, lock, delegate BeginInvoke, ThreadPool | Main | Web Projects »

Enabling session state across multiple WebMethod calls.

To enable session state across multiple webmethod calls:

1.       On the web server side, set SessionState=true in the WebMethod attribute for each method.

2.       On the client proxy side, share a single proxy object across the calls and first set the CookieContainer property.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)