Martin,

Thanks for taking time to reply my query.

Our client connects to multiple servers of similar nature but reporting
different data, and each server sets a cookie with name
"XXXSESSIONID"(identical name across all the servers) on its response but
when the cookie comes to client it gets overwritten by each others, inside
Axis there seem to be only one shared cookie maintained for all the servers
which gets overwritten.

Even I was thinking that setting ManageSession to true should handle this,
but cookies are getting overwritten  when single client connects to multiple
servers. And when I set unique name to cookies of each server then this
problem won't be seen but client sends all the cookies to each one of the
server.

For example: Lets say client is connecting to 2 servers, each sets cookie
with name SESSIONID1 and SESSIONID2 respectively, but next time when client
calls any API to the Server1 it sends both the cookies and to Server2 also
it sends both the cookies, but the order in which it is sent is for Server1,
first SESSIONID2 then SESSIONID1 and for Server2 in reverse order.

When we maintain identical cookie name it overwrites Server1's cookie with
Server2's.

After going through few documents I feel setting Constants.CUSTOM_COOKIE_ID
solves this problem, but it is not making any difference for me. So I
thought, the way I am setting this property is not correct.

Please let me know if you need any more clarifications.



--
View this message in context: 
http://axis.8716.n7.nabble.com/Cookie-getting-overwritten-when-client-connects-to-multiple-servers-tp111918p112007.html
Sent from the Axis Java - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to