On 29/06/2016 14:05, Gibu George wrote: > Hi All, > > I'm trying to get tomcat to work in a cluster with sessions being persisted > in mysql, in AWS. I have setup two tomcat servers in the clusters using " > org.apache.catalina.tribes.membership.StaticMember". > > The problem that I am facing is that when a request that containing > session_id created by tomcat instance1 is send to tomcat instance2, tomcat > instance2 fails to validate the session_id ( created by instance1 ) and > send a new session_id, created by instance2 in the response. > > Why is this happening?
Many possible reasons. More investigation is required. Is your web application cluster enabled? What do the logs tell you is happening with the cluster? > Has anyone face such an issue ? Frequently. > my tomcat is front ended by nginx > > Part 2: How do I enable logging for session management in tomcat? What do i > need to add in logging.properties file? org.apache.catalina.session.level = FINE org.apache.catalina.tribes.level = FINE is probably overkill but you can narrow it down once you figure out what is useful (or not) for your situation. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org