users@glassfish.java.net

Re: Glassfish Clustering with 2 nodes, session replication ...

From: <forums_at_java.net>
Date: Thu, 12 May 2011 00:26:02 -0500 (CDT)

 Yes, cookies are stored based on host name. When you access a host, the
cookies returned by it are stored by the browser. And when you access the
host again, the BROWSER sends the cookies to that host.  If you access a
different host, then the BROWSER wont send the cookies. That is how a BROWSER
works. It has nothing to do with session replication. You can easily write a
java client (using say, http-client APIs) that sends the cookies to GF
instances (and you can see that session replication works).

Since browsers cache session cookies based on host names, you need to front
end a cluster of nodes with an LB.

HTH

 

 

 


--
[Message sent by forum member 'mk111283']
View Post: http://forums.java.net/node/800920