In my case this is not practical.

Reason is I do have two applications with SSO enabled.

am trying to hit to the second application URL being
in the first application using httpClient package
(programatically)

User initially hits the first application.

I did get the cookie name which contains the sessionId
and create a httpClient cookie and set to the
httpState.

I did use the domain,name,value constructor of the
cookie.

Still it does not bind with the previous session.

Rather it creates a new session.

Isnt the domain,name,value uniquely identify the
unique and map with the session.


Let me know how to solve this.


Isnt this possible with httpClient


Waiting for a early reply,












--- Roland Weber <[EMAIL PROTECTED]> wrote:
> Hi Lalith,
> 
> when you create an HttpState, it does not contain
> session data.
> But when you execute a request using that HttpState,
> the session
> data is automatically stored there. If you re-use
> the HttpState, the
> session data is available for the next request. If
> you create a new
> HttpState for the next request, the session data is
> lost.
> 
> hope that helps,
>   Roland
> 
> 
> 
> 
> tom tom <[EMAIL PROTECTED]> 
> 20.04.2005 14:52
> Please respond to
> "HttpClient User Discussion"
> 
> 
> To
> HttpClient User Discussion
> <httpclient-user@jakarta.apache.org>
> cc
> 
> Subject
> Re: How to preserve session information.
> 
> 
> 
> 
> 
> 
> Though we construct a HttpState it does not contain
> session data rather we have to forcefully set the
> cookie information to the HttpState.
> 
> Correct me if am wrong.
> 
> Thanks
> 
> --- Roland Weber <[EMAIL PROTECTED]> wrote:
> > Hello Lalith,
> > 
> > tom tom <[EMAIL PROTECTED]> wrote on 20.04.2005
> > 06:15:45:
> > 
> > > In my contest I do not call the same HttpState
> > > instance over and over again.
> > > [...]
> > >
> > > How can enable the httpCLient hit to a server
> same
> > as
> > > the browser hit with Preserving the session
> > > information and SSO enabling.
> > 
> > By using the same HttpState for the requests. The
> > HttpState
> > is where the session information gets stored. If
> you
> > don't
> > re-use the HttpState, you throw away the session
> > data.
> > 
> > hope that helps,
> >   Roland
> > 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to