In addition, for those types of Web applications that are meant to
replace traditional desktop applications, where the user may keep the
window open but idle for long periods of time without refreshing, I
have found that it is useful to dedicate an area of the page for an
iframe, in which messages, status, and notifications can be polled for
the user session. For example, "you have 5 new tasks in your work
queue".

If there's nothing interesting to show in the polling iframe, just
display the current time or the user's session duration.  I like doing
this, where I don't want the session to time out so long as the user
still has their browser open to one of the app's pages.

Ben

On Thu, Apr 07, 2005 at 03:53:27PM +0100, Jonathan O'Connor wrote:
> How about using Mindbridge's new XTile component. Whenever a user moves to 
> a new input field on the page, call the XTile listener in your server. 
> This will automatically reset the session timeout. Or you could do when 
> the user moves to a new question. This Ajax stuff is very clever, isn't 
> it!
> Ciao,
> Jonathan O'Connor
> XCOM Dublin
> 
> 
> 
> Shing Hing Man <[EMAIL PROTECTED]> 
> 07/04/2005 15:07
> Please respond to
> "Tapestry users" <[email protected]>
> 
> 
> To
> Tapestry users <[email protected]>
> cc
> 
> Subject
> Re: Keeping the session alive [auf Viren geprueft]
> 
> 
> 
> 
> 
> 
> Have you looked at the method
> HttpSession.setMaxInactiveInterval ?
> 
> If I remember correctly, 
>   the method HttpSession.setMaxInactiveInterval(int
> interval)  overrides the session timeout set in
> web.xml.
> 
> If you can distinquish whether the request is for a
> quiz or form, you could set the session time out
> accordingly.
> 
> Shing
> 
> 
> --- Todd O'Bryan <[EMAIL PROTECTED]> wrote:
> > Is there any way to keep a session alive while users
> > fill out a form 
> > that could take a long time? I have the session set
> > to expire after 10 
> > minutes, but my students could be doing an online
> > quiz that takes 
> > longer. Is there an easy way to re-activate the
> > session or something 
> > after students submit their quiz?
> > 
> > Thanks,
> > Todd
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> Home page :
>   http://uk.geocities.com/matmsh/index.html
> 
> Send instant messages to your online friends http://uk.messenger.yahoo.com 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to