On Thu, Mar 3, 2011 at 5:57 PM, Mark Thomas <ma...@apache.org> wrote:
> On 03/03/2011 12:18, Vamsavardhana Reddy wrote: > > My guess is that there is an issue with Tomcat AJP connector because of > > which the request is getting forwarded to the login page when the HTTP > > server switches the node that will serve the request. Can someone throw > > light on what could be happening here? > > You guess is wrong. Everything is working exactly as it should. > > FORM authentication requires a session to work whereas BASIC does not. > You have not configured your 2 Tomcat instances for session replication > (get your test page to print out the session ID to confirm this). If you > don't want a second login when you move from node 1 to node 2, you'll > need to configure session replication (aka clustering). > Thank you for your quick reply. I have configured my servers for session replication. With BASIC authentication, I notice that the counter value that is stored in the session, incremented by the JSP and stored back in the session with each request is properly replicated across the two server instances. My test page prints out the session ID, server directory in the file system and the counter value. The counter value is also displayed in the server's command console. > Mark > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Vamsi