Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2004

Tip: Looking for answers? Try searching our database.

Session management on Pocket PC

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ReinaldoCL - 01 Nov 2004 11:34 GMT
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.
Dino Chiesa [Microsoft] - 04 Nov 2004 16:23 GMT
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&hl=en&lr=lang_en&q=cookiecontainer+site%3Aop
ennetcf.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&hl=en&lr=lang_en&q=%22web+services%22+%22Ses
sion+management%22


-D

> Hello,
>
[quoted text clipped - 7 lines]
>
> Reinaldo.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.