• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

configure tomcat or apache to share a common session

 
k mut
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to configure tomcat or apache to share a common session across all three web servers which is on a load balancing server (uses sticky session)so that we don�t need the cookie.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The documentation about Tomcat clustering is here, but you will still need cookies (or URL rewriting) to keep track of the session on the client side.

Having a sticky session implies that you always go back to the same server, in which case you don't need clustered sessions for load balancing, only for failover.

Maybe you can post a bit more detail about your setup, and which goals you're trying to achieve.
 
k mut
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we are using tomcat 4.1.30
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ulf Dittmer:
Maybe you can post a bit more detail about your setup, and which goals you're trying to achieve.


Maybe "a bit more" wasn't the right way to put it.
Tell us as much as you can about your current set up and which goals you're trying to achieve.
As Ulf mentioned, if you're using sticky sessions (IP Load Balancing) then there is no need for session replication.
And... either way, if you're using sessions, you'll still need to support session cookies unles you've implemented url-rewriting.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic