M
Mike Boilen [MS]
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.
Hope this helps.
Mike Boilen
Developer
..NET Compact Framework
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.gotdotnet.com/team/netcf/FAQ.aspx
--------------------
| From: "Christopher Dundon" <[email protected]>
| Subject: Cookies in .NET Compact Framework?
| Date: Thu, 19 Jun 2003 02:03:35 -0500
| Lines: 23
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 000-062-508.area3.spcsdns.net 68.24.246.25
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:26038
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| So I've hit a slight dilemma in the program I've been working on for over
a
| week now, which I very vaguely touched on in a separate response to this
| group. I've been working on a program which requires the ability to
maintain
| a consistant session with a website using cookies that the site returns.
| This centers around HttpWebRequest and WebResponse objects using a static
| CookieContainer object to maintain the session. It's rather critical that
I
| have cookie support to maintain this connection as the website in
particular
| my program interfaces with has an obscene level of security.
|
| Anyways, I was able to complete this program in C# on the PC platform
| without any problems, but when I ported over the code to C# on the Pocket
| PC, suddenly my beloved CookieContainer object vanished. And I need SOME
| form of cookie management to make this work.
|
| I'm open to suggestions or code samples if any of you have ideas on how to
| work around this. I'm quite unexperienced with working with cookies, so
I'm
| hoping there is just something I'm overlooking.
|
| Thanks!
|
| - Christopher
|
|
|
However, http cookies are just http headers. You can manage the headers
yourself in order to keep session state with the server.
Hope this helps.
Mike Boilen
Developer
..NET Compact Framework
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.gotdotnet.com/team/netcf/FAQ.aspx
--------------------
| From: "Christopher Dundon" <[email protected]>
| Subject: Cookies in .NET Compact Framework?
| Date: Thu, 19 Jun 2003 02:03:35 -0500
| Lines: 23
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 000-062-508.area3.spcsdns.net 68.24.246.25
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:26038
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| So I've hit a slight dilemma in the program I've been working on for over
a
| week now, which I very vaguely touched on in a separate response to this
| group. I've been working on a program which requires the ability to
maintain
| a consistant session with a website using cookies that the site returns.
| This centers around HttpWebRequest and WebResponse objects using a static
| CookieContainer object to maintain the session. It's rather critical that
I
| have cookie support to maintain this connection as the website in
particular
| my program interfaces with has an obscene level of security.
|
| Anyways, I was able to complete this program in C# on the PC platform
| without any problems, but when I ported over the code to C# on the Pocket
| PC, suddenly my beloved CookieContainer object vanished. And I need SOME
| form of cookie management to make this work.
|
| I'm open to suggestions or code samples if any of you have ideas on how to
| work around this. I'm quite unexperienced with working with cookies, so
I'm
| hoping there is just something I'm overlooking.
|
| Thanks!
|
| - Christopher
|
|
|