On Dec 13, 2005, at 11:14 AM, Andrus Adamchik wrote:
>> Cayenne 3t uses hessian, so all requests are HttpRequests, and all
>> responses are HttpResponses. On server side it is possible to
>> fetch HttpSession data from HttpRequest, and then addCookie() to
>> HttpResponse. There is no cookie handling on client, has anyone
>> tried to implement that ?
>> Maybe there is a different way to implement sessions ?
>
> Hessian server supports its own sessions (see BaseRemoteService).
To clarify - you don't have to do anything special to get session
functionality. Each OPPConnection will establish a new one or join a
shared session:
// new dedicated session
OPPConnection c =
new HessianConnection("http://myserver...", "user", "secret", null);
// new shared session (multi-client chat mode)
OPPConnection c =
new HessianConnection("http://myserver...", "user", "secret",
"MyChat");
Andrus
This archive was generated by hypermail 2.0.0 : Tue Dec 13 2005 - 03:29:31 EST