Re: Programmatically detecting login or logout events

2008-08-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, MartinOShea wrote: | Thanks for the reply. In the various servlets making up this application, I | don't currently have a user object in every request but tend to use | request.getRemoteUser() where necessary. This also to minimizes traffic.

Re: Programmatically detecting login or logout events

2008-08-01 Thread MartinOShea
this message in context: http://www.nabble.com/Programmatically-detecting-login-or-logout-events-tp18685933p18770154.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users

Re: Programmatically detecting login or logout events

2008-07-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, MartinOShea wrote: | I'm trying to find a way to detect the events caused when a user logs into | or logs out of an application I'm working on. There is no good way to do this in Tomcat. In order to do something similar (we want to load

Programmatically detecting login or logout events

2008-07-28 Thread MartinOShea
://www.nabble.com/Programmatically-detecting-login-or-logout-events-tp18685933p18685933.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL

Re: Programmatically detecting login or logout events

2008-07-28 Thread Mark Thomas
MartinOShea wrote: I have used request.getRemoteUser() at various points in the application to identify the current user when they are authenticated by Apache Tomcat. However, request.getRemoteUser() does not tell me when the user logged in or off. request.getRemoteUser() tells you if the user

Re: Programmatically detecting login or logout events

2008-07-28 Thread MartinOShea
()==null for logout and request.getRemoteUser()!=null for login. But I'm not familiar with session listeners so I will be looking at them later. Do you have any sample code at all? Thanks Martin O'Shea. -- View this message in context: http://www.nabble.com/Programmatically-detecting-login

Re: Programmatically detecting login or logout events

2008-07-28 Thread Johnny Kewl
- Original Message - From: MartinOShea [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Monday, July 28, 2008 10:15 AM Subject: Programmatically detecting login or logout events Hello I'm trying to find a way to detect the events caused when a user logs into or logs out

Re: Programmatically detecting login or logout events

2008-07-28 Thread David Smith
Martin the problem is that even when you invalidat the session... the browser itself still knows that the user is cool... So TC will send it a new session ID and it will return the info without even asking the user to logon as such... I can see this happening ONLY if the user is authenticating