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?
http://wiki.apache.org/jakarta-httpclient/ForAbsoluteBeginners

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.

cheers,
  Roland

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


Mime
View raw message