Re: Logging session timeouts

2006-02-09 Thread David Kerber
xactly once and destroyed exactly once. -Original Message- From: David Kerber [mailto:[EMAIL PROTECTED] Sent: Thursday, February 09, 2006 12:16 PM To: Tomcat Users List Subject: Re: Logging session timeouts I still have a question about performance: any idea which of these met

RE: Logging session timeouts

2006-02-09 Thread GB Developer
Listener: A session is created exactly once and destroyed exactly once. > -Original Message- > From: David Kerber [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 09, 2006 12:16 PM > To: Tomcat Users List > Subject: Re: Logging session timeouts > >

RE: Logging session timeouts

2006-02-09 Thread Tim Lucia
, and have just brought it along as needed... If someone knows for sure... Please let me (us) know. Tim -Original Message- From: David Kerber [mailto:[EMAIL PROTECTED] Sent: Thursday, February 09, 2006 1:16 PM To: Tomcat Users List Subject: Re: Logging session timeouts Thanks to both of yo

Re: Logging session timeouts

2006-02-09 Thread David Kerber
tion. Tim -Original Message- From: Joey Geiger [mailto:[EMAIL PROTECTED] Sent: Thursday, February 09, 2006 12:27 PM To: 'Tomcat Users List' Subject: RE: Logging session timeouts While the user can delete the cookie that is associated with the session, the server will consider the session

RE: Logging session timeouts

2006-02-09 Thread Joey Geiger
Thank you for the clarification. -Original Message- From: Tim Lucia [mailto:[EMAIL PROTECTED] Sent: Thursday, February 09, 2006 11:38 AM To: 'Tomcat Users List' Subject: RE: Logging session timeouts The filter, implementing HttpSessionListener, and binding itself to the ses

RE: Logging session timeouts

2006-02-09 Thread Tim Lucia
rsday, February 09, 2006 12:27 PM To: 'Tomcat Users List' Subject: RE: Logging session timeouts While the user can delete the cookie that is associated with the session, the server will consider the session valid until it times out, as the user is unable to end the session manually. If yo

Re: Logging session timeouts

2006-02-09 Thread David Kerber
t the filter first. (If a user goes inactive, the session will expire, and the listener will catch it and log it) -Original Message- From: David Kerber [mailto:[EMAIL PROTECTED] Sent: Thursday, February 09, 2006 11:09 AM To: Tomcat Users List Subject: Re: Logging session timeouts Tha

RE: Logging session timeouts

2006-02-09 Thread Joey Geiger
EMAIL PROTECTED] Sent: Thursday, February 09, 2006 11:09 AM To: Tomcat Users List Subject: Re: Logging session timeouts That got me going; thanks! One more question: Is there any way of telling if the session was actively invalidated, or if it timed out? Looking at the docs for HttpSessionBinding

RE: Logging session timeouts

2006-02-09 Thread Tim Lucia
I don't believe so. Someone please correct me if I am wrong. -Original Message- From: David Kerber [mailto:[EMAIL PROTECTED] Sent: Thursday, February 09, 2006 12:09 PM To: Tomcat Users List Subject: Re: Logging session timeouts That got me going; thanks! One more question: Is

Re: Logging session timeouts

2006-02-09 Thread David Kerber
Users List Subject: Re: Logging session timeouts I got your code in, and it compiles, but I don't understand how I configure the url-mapping you refer to. Could you point me to some docs for that? I looked through the web.xml files (both the server one, and the one for the app), but couldn't

Re: Logging session timeouts

2006-02-09 Thread David Kerber
)+milliseconds; String secondsStr = (seconds<10 ? "0" : "")+seconds; String minutesStr = (minutes<10 ? "0" : "")+minutes; String hoursStr = (hours<10 ? "0" : "")+hours; return new String(d

RE: Logging session timeouts

2006-02-09 Thread Joey Geiger
lt;100 ? "0" : ""))+milliseconds; String secondsStr = (seconds<10 ? "0" : "")+seconds; String minutesStr = (minutes<10 ? "0" : "")+minutes; String hoursStr = (hours<10 ? "0" : "")

RE: Logging session timeouts

2006-02-09 Thread Tim Lucia
: Re: Logging session timeouts I got your code in, and it compiles, but I don't understand how I configure the url-mapping you refer to. Could you point me to some docs for that? I looked through the web.xml files (both the server one, and the one for the app), but couldn't find anything

Re: Logging session timeouts

2006-02-09 Thread David Kerber
I got your code in, and it compiles, but I don't understand how I configure the url-mapping you refer to. Could you point me to some docs for that? I looked through the web.xml files (both the server one, and the one for the app), but couldn't find anything about url-mapping or filters that s

RE: Logging session timeouts

2006-02-09 Thread Joey Geiger
inal Message- From: Joey Geiger [mailto:[EMAIL PROTECTED] Sent: Thursday, February 09, 2006 8:48 AM To: 'Tomcat Users List' Subject: RE: Logging session timeouts Session Listeners http://pdf.coreservlets.com/CSAJSP-Chapter9.pdf -Original Message- From: David Kerber [mailto:[

Re: Logging session timeouts

2006-02-09 Thread David Kerber
I was hoping for something a little simpler to implement into my app for just logging a user timing out (something like a HttpSession.timeOut event), but I will definitely have a use for the high water mark functionality in the not-too-distant future. Thanks! Tim Lucia wrote: Below is a fi

RE: Logging session timeouts

2006-02-09 Thread Joey Geiger
Session Listeners http://pdf.coreservlets.com/CSAJSP-Chapter9.pdf -Original Message- From: David Kerber [mailto:[EMAIL PROTECTED] Sent: Thursday, February 09, 2006 8:38 AM To: Tomcat Users List Subject: Logging session timeouts Is there any way of trapping session timeouts, so I can log

RE: Logging session timeouts

2006-02-09 Thread Tim Lucia
Below is a filter which keeps track of how many sessions are attached to a web app. The key part is the HttpSessionBindingListener interface. Tim /** * J2EE "Filter" to count page hits. What it counts depends on the url-mapping * in web.xml. * * @author tim.lucia */ public class SessionC