hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <http-as...@dubioso.net>
Subject Re: HTTP post initiates new session -- need to avoid it.
Date Mon, 02 Oct 2006 15:26:09 GMT
Hello Sushil,

> HttpClient client = new HttpClient();
>     client.getState().addCookie(new Cookie("localhost:8085","jsessionid",
> request.getSession().getId(), "app", null, false));

What is "request" here? Are you mixing up client and server side?
Have you read what our primer has to say about sessions?

Are you trying to share a session between the browser and
the server-side code that seems to be using HttpClient?
That is not possible.


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

View raw message