The Cookie Container class is not present on the .net Compact Framework.
However, http cookies are just http headers. You can manage the headers
yourself in order to keep session state with the server. I believe there is
an effort in opennetcf.org to retrofit a CookieContainer to .NET CF v1.1. I
don't know the status. See:
http://www.google.com/search?num=30&...Aopennetcf.org
Another way to do it is to "roll your own" session management, not depending
on HTTP Cookies.
Add an initial method that the client calls; when the server receives this
call, it creates a state instance, and returns a "handle" to the client,
maybe an Int32. The client then just passes that handle in all successive
calls.
This is basically the way a Google or Amazon webservice works today, If I am
not mistaken.
When the client is "done" with the conversation, it can call a Close()
webmethod.
You'd still need to expire server-side state resources in case the Close()
is never called.
also see here:
http://www.google.com/search?num=30&...+management%22
-D
"ReinaldoCL" <Re********@discussions.microsoft.com> wrote in message
news:8D**********************************@microsof t.com...
Hello,
I'm looking for a posibility to use session objects or cookies in a C#
program on Pocket PC, that use a web service method with session enabled
property. But the .NET Compact Framework doesn't support session objects
and
cookies.
I're very pleased for an idea about how to implement this,
Reinaldo.