I've read of two different methods in this newsgroup to overcome the
limitations of the missing CookieContainer in the CompactFramework.
There is the GetWebRequest override method which is described by michael
Yuan at
http://www.ondotnet.com/pub/a/dotnet...rviceapps.html and
the SessionAwareWebSvc example supplied by Alex Feinman.
I have tried both of these examples and they equaly work very well to solve
the problem with session state. However, I am hoping to combine this with
suport for forms authentication within my web service.
First call to the Web Service I authenticate the user and call
FormsAuthentication.SetAuthCookie(username,false). Each successive call to
the Web Service I check (Context.User.Identity.IsAuthenticated) which always
returns false.
I have verified that the session state is operational and I can store items
in the session and retrieve these against successive calls to the Web Service
- its just the Forms authentication that wont function. I was under the
impression that this simply stored a cookie and attached this to the outoing
response stream.
Anyone got any ideas on how to get this working with the .NETcf?