File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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: 42906
    
  69
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

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: configure tomcat or apache to share a common session