• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

configure tomcat or apache to share a common session

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
we are using tomcat 4.1.30
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Eat that pie! EAT IT! Now read this tiny ad. READ IT!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic