tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynir Hübner <>
Subject RE: Retrieve User - Realm
Date Fri, 13 Dec 2002 18:46:27 GMT
One minor flaw in your idea, it's not possible to retrive the user from the session, unless
you put it there when the user is authenticated.
Meaning, the request.getRemoteUser() will only return you a username (login) in the actual
request the authentication is made, still, depending on the browser / HTTP server configuration
you are using it may happen more often, some configurations may even return value for every

In short,  if you want to have access to the login of the user browsing your website in the
session you have to put it there, in the first authenticated request. 

Hope it helps

> wrote:
> >Hello,
> >
> >I searched many places and read many things, but I didn't
> > find any example that retrieve the user from the session  
> after it is 
> >authenticated with realm.
> >
> >Can someone help me?
> >

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message