hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugene Kondrashev <ekondras...@rambler.ru>
Subject Re: Session handling in HttpClient
Date Fri, 07 Nov 2008 11:48:22 GMT

I see..
But, how can I recognize the session id cookie?
In theory server can use any label to designate session id cookie. Is there
some standard way to get sessionID cookie through HTTPClient?
Just parsing all cookies on accordance "sessionID" string is not a good
idea,I think.

olegk wrote:
> On Wed, 2008-11-05 at 09:04 -0800, Eugene Kondrashev wrote:
>> Hi!
>> >Alternatively, to generically support all servers, you might want to
>> >do a periodic "is session open" request, which is basically a request
>> >to the server that checks if the session is open. If you want to do
>> >this, there is a very safe way to implement something like this. Just
>> >ask me and I'll explain it (it's not as simple as checking for the
>> >presense of a session, as this will always return true).
>> So can you explain how to do such a periodic "is session open" request?
> Just hit the target server with a HEAD or GET and see if you get the
> same session cookie (session id) back.
> Oleg

View this message in context: http://www.nabble.com/Session-handling-in-HttpClient-tp18106268p20379151.html
Sent from the HttpClient-User mailing list archive at Nabble.com.

To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org

View raw message