This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes configure tomcat or apache to share a common session Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "configure tomcat or apache to share a common session" Watch "configure tomcat or apache to share a common session" New topic
Author

configure tomcat or apache to share a common session

k mut
Greenhorn

Joined: Aug 26, 2005
Posts: 16
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
Marshal

Joined: Mar 22, 2005
Posts: 41141
    
  45
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.


Ping & DNS - my free Android networking tools app
k mut
Greenhorn

Joined: Aug 26, 2005
Posts: 16
we are using tomcat 4.1.30
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
Consider Paul's rocket mass heater.
 
subject: configure tomcat or apache to share a common session
 
Similar Threads
http://localhost:8080/ --> HTTP 500 - Internal server error
Where do I find info to configure apache to work with tomcat?
load balancing in Apache-Tomcat
tomcat+Apache
Apache+Tomcat