Hi,

I am having trouble getting a Web Service to maintain session state
information. It works if I just browse the asmx file via a browser, but not
otherwise. I found a post in the archives saying to set the
ConnectionGroupName property to a name, and I have done so. However, the
session state does not get maintained and I am still getting two different
session ids.
In fact, the state of the private variables of the web service does not even
get maintained. So if I have an object A, that resides in some DLL (happens
to be a ServicedComponent), and I call WebServiceMethod1, which calls
A.SomeMethod, and this alters some internal variable of A, when I call
WebServiceMethod2, which calls A.SomeOtherMethod, this internal variable
loses the assignment made before.
This was causing a problem, so I decided  to save A as a session variable
hoping to avoid this problem, but during the second call the session
variable I saved A in can't be found because a new session has begun.
Please help!

Thanks,
Marina

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to