tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amit Rawat <>
Subject Re: Tomcat simple tcp cluster doesn't work on switching browser
Date Mon, 16 Nov 2015 12:21:50 GMT
Hi André,

Thanks for the reply. I understand that on changing browsers, a new
session would need to be established & that is indeed what I do . On
changing browsers , I login again , creating a new session .
As can be seen in the logs I pasted on stack overflow : New Session :::
6003A09956987A2035EB9BB1C5D7C157.SERVER-1 . But as you can see from the
logs , the sessions created or destroyed are not shared with the other
tomcat by the tomcat to which I send my requests .

On 16/11/15 5:30 pm, "André Warnier (tomcat)" <> wrote:

>On 16.11.2015 11:36, Amit Rawat wrote:
>> Hi,
>> I'm observing some strange behaviour between two instances of
>>apache-tomcat-7.0.41 running on the same server. Sessions are shared
>>between the servers on multiple logins/logouts on the same browser , but
>>when i switch browsers , the session sharing stops .
>> I have posted a question on stack overflow where you can find more
>>details on what I have tried & my observations :
>>   Any help would be appreciated.
>Off the top of my head, I would say
>- a "session" saved on the server, is identified by a "session-id" (some
>kind of large 
>alphanumeric string, unique)
>- to allow a browser to re-connect to the same session during several
>interactions, this
>session-id is initially sent to the browser, contained in a cookie
>- whenever the browser interacts with the same server/cluster, it resends
>this cookie, and 
>this is what allows the server to re-connect this browser to the saved
>- of course, if you switch browsers, the new browser does not have that
>cookie. So it does
>not send it to the server/cluster, and it gets a new session, with a
>different session-id.
>Or did I misunderstand your explanation of what happens ?
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message