You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by tom tom <j_...@yahoo.com> on 2005/04/05 17:55:30 UTC
How the session handling is done
Being inside a session.
If we use a httpclient package and do a request to
another server B.
How does the server B knows that this hit also belongs
to the same sesssion.
Should we set the cookies before submitting. Assuming
session Id also will be set accordingly.
Basically want to know how the session management is
done.
Thanks,
__________________________________
Do you Yahoo!?
Yahoo! Personals - Better first dates. More second dates.
http://personals.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
Re: How the session handling is done
Posted by Ortwin Glück <or...@nose.ch>.
Hi whoever-you-may-be,
Disclosing your name won't hurt probably.
State in HTTP is managed through cookies. For general information about
this, please refer to RFC-2109:
http://www.ietf.org/rfc/rfc2109.txt
Please have a look at our Cookie guide:
http://jakarta.apache.org/commons/httpclient/3.0/cookies.html
Sample code for cookie handling can be found here:
http://svn.apache.org/viewcvs.cgi/jakarta/commons/proper/httpclient/trunk/src/examples/CookieDemoApp.java?rev=155418&view=markup
If you have more concrete questions, feel free to get back to us.
Ortwin Glück
tom tom wrote:
> Being inside a session.
>
> If we use a httpclient package and do a request to
> another server B.
>
> How does the server B knows that this hit also belongs
> to the same sesssion.
>
> Should we set the cookies before submitting. Assuming
> session Id also will be set accordingly.
>
> Basically want to know how the session management is
> done.
>
> Thanks,
--
_________________________________________________________________
NOSE applied intelligence ag
ortwin glück [www] http://www.nose.ch
software engineer
hardturmstrasse 171 [pgp id] 0x81CF3416
8005 zürich [office] +41-1-277 57 35
switzerland [fax] +41-1-277 57 12
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
Re: How the session handling is done
Posted by Roland Weber <RO...@de.ibm.com>.
Hi "tom tom",
the cookies are usually stored automatically by HttpClient
in the HttpState object used for executing a method. Each
cookie has path/domain information that tells HttpClient
whether to send it to host B or not.
cheers,
Roland
tom tom <j_...@yahoo.com>
05.04.2005 17:55
Please respond to
"HttpClient Project"
To
httpclient-dev@jakarta.apache.org
cc
Subject
How the session handling is done
Being inside a session.
If we use a httpclient package and do a request to
another server B.
How does the server B knows that this hit also belongs
to the same sesssion.
Should we set the cookies before submitting. Assuming
session Id also will be set accordingly.
Basically want to know how the session management is
done.
Thanks,
__________________________________
Do you Yahoo!?
Yahoo! Personals - Better first dates. More second dates.
http://personals.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org