Hello 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. I want to record these events so that I know the exact steps a user has taken through the application's JSPs and servlets. I want to do this without reference to the Apache Tomcat server logs as well.
I have tried the following code in index.jsp (which is serving as each user's home page): <% if (request.getParameter("logoff") != null) { session.invalidate(); response.sendRedirect("/myDataSharer/jsp/user/index.jsp"); return; } %> And I have tried using variations like: <% if (request.getParameter("logon") == true) { But without success. 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. Does anyone know a way that the login and logout events can be recorded by an event in a program, a session object and so on? I'm using NetBeans 6.1 with Apache Tomcat 6.X. Thanks Martin O'Shea. -- View this message in context: http://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 PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]