Re: AjaxSelfUpdatingTimerBehavior and session timeout

2010-01-25 Thread Martin Grigorov
On Mon, 2010-01-25 at 07:09 -0500, James Carman wrote: > On Mon, Jan 25, 2010 at 4:37 AM, Chuck Brinkman wrote: > > 1) So, if I didn't access the session in my ajax callback then the page > > would eventually expire. Another way to say this is if I simply had the > > original Clock implementatio

Re: AjaxSelfUpdatingTimerBehavior and session timeout

2010-01-25 Thread Apple Grew
This was exactly what I was thinking of implementing. Anyway I thought of implementing by setting a value in the generated html which the js code will count down to. If any user activity is detected by js code then an ajax call will fetch the new session duration (which will save the session from t

Re: AjaxSelfUpdatingTimerBehavior and session timeout

2010-01-25 Thread James Carman
On Mon, Jan 25, 2010 at 7:23 AM, Chuck Brinkman wrote: > James, > > Thanks for the information.  I wonder if those using > AjaxSelfUpdatingTimerBehavior realize that this prevents session timeout? I would imagine they do. As Igor pointed out, it may be *why* they're using it! :) ---

Re: AjaxSelfUpdatingTimerBehavior and session timeout

2010-01-25 Thread Chuck Brinkman
James, Thanks for the information. I wonder if those using AjaxSelfUpdatingTimerBehavior realize that this prevents session timeout? Chuck On Mon, Jan 25, 2010 at 7:09 AM, James Carman wrote: > On Mon, Jan 25, 2010 at 4:37 AM, Chuck Brinkman > wrote: > > 1) So, if I didn't access the session

Re: AjaxSelfUpdatingTimerBehavior and session timeout

2010-01-25 Thread James Carman
On Mon, Jan 25, 2010 at 4:37 AM, Chuck Brinkman wrote: > 1)  So, if I didn't access the session in my ajax callback then the page > would eventually expire.  Another way to say this is if I simply had the > original Clock implementation on this page then the session would expire? > No, the ajax s

Re: AjaxSelfUpdatingTimerBehavior and session timeout

2010-01-25 Thread Chuck Brinkman
1) So, if I didn't access the session in my ajax callback then the page would eventually expire. Another way to say this is if I simply had the original Clock implementation on this page then the session would expire? 2) Is there an easy way of implement this countdown to expire? On Mon, Jan 2

Re: AjaxSelfUpdatingTimerBehavior and session timeout

2010-01-24 Thread Igor Vaynberg
your behavior is always touching the session, so it will never timeout. using this behavior is actually a solution to preventing the session from ever timing out :) -igor On Sun, Jan 24, 2010 at 9:10 PM, Chuck Brinkman wrote: > I thought it would be fun to add a 'time to session expiration' disp

AjaxSelfUpdatingTimerBehavior and session timeout

2010-01-24 Thread Chuck Brinkman
I thought it would be fun to add a 'time to session expiration' display to my pages. So I attempted this using the AjaxSelfUpdatingTimerBehavior. I just took the Clock example and hacked it as follows hsession = request.getHttpServletRequest().getSession(); lastAccessTime = hsession.getLastAcce