"Joshua Moore" <> wrote in message
news:_ISdnbCmfKjzGVPeRVn-...
> I've never used the web service session or cookie information and really
> need help.
....
> Should I try to have the same session, pass back a cookie, and implement a
> proxy class for the CookieContainer, etc.? This is the only thing I've
> seen that looks viable from a windows app.
>
> Thank you, thank you, thank you in advance,
> Joshua Moore
Hi Joshua,
you can enable sessions in web service using the attribute
[WebMethod(EnableSession=true)]. On the client side you need to allow
storing cookies since IIS session is saved and stored in a cookie. Enable
cookie support by creating a CookieContainter like this:
MyService myService = new MyService();
myService.CookieContainer =
new System.Net.CookieContainer();
From there on you can use IIS session management like any other ASP.NET
page.
Best,
--
Martin Kulov
http://www.codeattest.com/blogs/martin
MCAD Charter Member
MCSD.NET Early Achiever
MCSD