tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Riaan Oberholzer <riaanoberhol...@yahoo.com>
Subject Re: [Q] Extending a Realm
Date Thu, 24 Jul 2003 12:25:34 GMT
Just thought about it.... having a session doesn't
mean you are successfully logged in, does it? The
moment you open the browser and gets directed to the
logon JSP, you have a session, right? That does not
mean you have logged in successfully... or what am I
missing here?


--- Martin Jacobson <martin_j@libero.it> wrote:
> Riaan Oberholzer wrote:
> > Is it possible to extend the standard Realms, or
> do
> > you have to re-do it from scratch by implementing
> the
> > interface again?
> > 
> > I want everything the Datasource Realm provides,
> > except when the authentication succeeds, I want to
> > update the user db table to indicate the date/time
> > this occurred.
> > 
> > Can it be done?   
> 
> You want to record the data & time of last login,
> right? I wouldn't 
> modify/subclass the Realm at all - instead, I would
> write an 
> HTTPSessionListener class, and do it in the
> sessionCreated() method.
> 
> Martin
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> tomcat-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message