----- Original Message -----
From: "Andrew Vardeman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 7:36 AM
Subject: Re: how to implement sessions, persistent objects, etc. ?


> Stan,
>
> Thanks!  I was talking about application scope because it looked like
> that's what would be necessary to track multiple sessions on the server
via
> "pure" SOAP (passing the session ID in the SOAP headers and not relying on
> HTTP headers).  But if cookies are a standard feature of .NET web service
> clients, great!  I haven't done much with .NET yet.
>
> Andrew

I dont like cookies as a way of modelling session state; they are too much
classic web browser and should not be transferred into the new API world,
especially when some implementations (can you say
java.net.HttpUrlConnection) make a dogs breakfast of handling >1 cookie).

I am putting session into the API itself, which makes it explicit to
everyone, and then doing my own mapping from a session ID to stateful
objects. This also makes testing easy, you dont need SOAP or HttpRequest
mock objects to call into your stateful stuff at test time

Reply via email to