tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vamsavardhana Reddy <c1vams...@gmail.com>
Subject Re: Problem accessing a secure resource with FORM login method when web application clustered on Tomcat 6.0.18
Date Thu, 03 Mar 2011 13:26:46 GMT
On Thu, Mar 3, 2011 at 5:57 PM, Mark Thomas <markt@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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Vamsi

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message