Re: Session timeouts: ignore "periodic polling" URL?

2011-03-21 Thread Mark Thomas
On 21/03/2011 08:52, Felix Schumacher wrote: > On Sun, 20 Mar 2011 22:26:46 +0100, André Warnier wrote: You are both right on some counts and both wrong on some counts. The Servlet spec (section 7.6 in Servlet 3.0) requires that processing a request associated with a session (i.e. has a session I

Re: Session timeouts: ignore "periodic polling" URL?

2011-03-21 Thread Felix Schumacher
On Sun, 20 Mar 2011 22:26:46 +0100, André Warnier wrote: Felix Schumacher wrote: ... The creation or retrieval of a session, as far as I understand it, is totally under application control. In other words, if your servlet (or JSP), when it is called, executes a HttpServletRequest.getSessio

RE: Session timeouts: ignore "periodic polling" URL?

2011-03-20 Thread Martin Gainty
umac...@internetallee.de > To: users@tomcat.apache.org > Subject: Re: Session timeouts: ignore "periodic polling" URL? > > On Sun, 20 Mar 2011 15:40:48 +0100, André Warnier wrote: > > sebb wrote: > >> On 20 March 2011 11:19, André Warnier wrote: > >>> sol myr w

Re: Session timeouts: ignore "periodic polling" URL?

2011-03-20 Thread André Warnier
Felix Schumacher wrote: ... The creation or retrieval of a session, as far as I understand it, is totally under application control. In other words, if your servlet (or JSP), when it is called, executes a HttpServletRequest.getSession() call, then it will retrieve the existing session (or creat

Re: Session timeouts: ignore "periodic polling" URL?

2011-03-20 Thread Felix Schumacher
-date. Unfortunately this prevents sessions from timing out... Is there a way to tell Tomcat that some URL shouldn't affect session timeouts? Namely if for the last 30 minutes, the browser requested nothing but "http://server/autoRefresh.do"; , then Tomcat should assume the user

Re: Session timeouts: ignore "periodic polling" URL?

2011-03-20 Thread Stevo Slavić
Ajax and >>>> Comet), in order to keep the view  up-to-date. >>>> Unfortunately this prevents sessions from timing out... >>>> >>>> Is there a way to tell Tomcat that some URL shouldn't affect session >>>> timeouts? >>>> Namel

Re: Session timeouts: ignore "periodic polling" URL?

2011-03-20 Thread André Warnier
... Is there a way to tell Tomcat that some URL shouldn't affect session timeouts? Namely if for the last 30 minutes, the browser requested nothing but "http://server/autoRefresh.do"; , then Tomcat should assume the user went away from the computer, and kill the session. You may have

Re: Session timeouts: ignore "periodic polling" URL?

2011-03-20 Thread sebb
ortunately this prevents sessions from timing out... >> >> Is there a way to tell Tomcat that some URL shouldn't affect session >> timeouts? >> Namely if for the last 30 minutes, the browser requested nothing but >> "http://server/autoRefresh.do";

Re: Session timeouts: ignore "periodic polling" URL?

2011-03-20 Thread André Warnier
x27;t affect session timeouts? Namely if for the last 30 minutes, the browser requested nothing but "http://server/autoRefresh.do"; , then Tomcat should assume the user went away from the computer, and kill the session. You may have to explain the logic of this a bit better, because on the

Session timeouts: ignore "periodic polling" URL?

2011-03-20 Thread sol myr
Hi, We have a Servelts/JSP application Tomcat6. Our javascripts issues automatic, periodic polling requests (Ajax and Comet), in order to keep the view  up-to-date. Unfortunately this prevents sessions from timing out... Is there a way to tell Tomcat that some URL shouldn't affect se

Re: Having variable session timeouts

2009-04-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Siddhartha, On 4/6/2009 1:50 PM, Siddhartha Purkayastha wrote: > Looks like this should solve my problem - > HttpSession.setMaxInactiveInterval() ? That sounds like a good start. > Are there any implications of using this method? Yes: the session

Re: Having variable session timeouts

2009-04-06 Thread Siddhartha Purkayastha
Looks like this should solve my problem - HttpSession.setMaxInactiveInterval() ? Are there any implications of using this method? 2009/4/6 Siddhartha Purkayastha > Hello All - > > How is it possible to implement variable session timeouts? > My use case is: for a set of users

Having variable session timeouts

2009-04-06 Thread Siddhartha Purkayastha
Hello All - How is it possible to implement variable session timeouts? My use case is: for a set of users with certain properties (which in turn will be stored in the session, say x = 10), I want to have a time out of 30 mins. For others (say with property x = 15), I want to have a timeout of 1

RE: Tomcat creates a jsessionid cookie when session timeouts

2006-07-26 Thread Tejas Bavishi
:[EMAIL PROTECTED] Sent: Wednesday, July 26, 2006 7:41 PM To: Tomcat Users List Subject: Re: Tomcat creates a jsessionid cookie when session timeouts By the way, this behaviour only happens in Mozilla/Firefox, it does not happen in Internet Explorer. Regards, Luís Amorim Luis AMORIM/PT

Re: Tomcat creates a jsessionid cookie when session timeouts

2006-07-26 Thread Luis . Amorim
Subject:Tomcat creates a jsessionid cookie when session timeouts Hi there. I have the following problem occuring in my web application. I am using struts and I am using the url rewriting method for session maintenance, but when a timeout occurs the tomcat application server sets a co

Tomcat creates a jsessionid cookie when session timeouts

2006-07-26 Thread Luis . Amorim
Hi there. I have the following problem occuring in my web application. I am using struts and I am using the url rewriting method for session maintenance, but when a timeout occurs the tomcat application server sets a cookie named jsessionid (used for session tracking purposes) with a new sessio

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
{ return getClass().getName() + "#" + hashCode(); } } -Original Message- From: David Kerber [mailto:[EMAIL PROTECTED] Sent: Thursday, February 09, 2006 9:38 AM To: Tomcat Users List Subject: Logging session timeouts Is there any way of trapping session timeou

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
} /** * Return string representation of this object * @return a String representation of this object */ public String toString() { return getClass().getName() + "#" + hashCode(); } } -Original Message- From: David Kerber [mailto:[EMAIL PROTE

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

RE: Logging session timeouts

2006-02-09 Thread Tim Lucia
Code(); } } -Original Message- From: David Kerber [mailto:[EMAIL PROTECTED] Sent: Thursday, February 09, 2006 9:38 AM To: Tomcat Users List Subject: Logging session timeouts Is there any way of trapping session timeouts, so I can log them? I am logging when a user

Logging session timeouts

2006-02-09 Thread David Kerber
Is there any way of trapping session timeouts, so I can log them? I am logging when a user logs in and when they explicitly log out, but would like to log when their session times out, if that is possible. TIA! Dave - To

Session timeouts

2006-01-26 Thread Martin Dubuc
I am having some problems with session timeouts. I set the session-timeout property to 15 minutes in the Tomcat global web.xml and also in my application web.xml. However, Tomcat is not always timing out when sessions are inactive more than 15 minutes. On some systems, it behaves as I expect