Reinhard,
Thanks for the feedback, see inline.
On 10/18/05, Reinhard Poetz <[EMAIL PROTECTED]> wrote:
> Kris Schneider wrote:
> > Here's the usage scenario: We want a client-side timer to display a
> > warning when a user's session is about to expire. This is especially
> > important for forms that have unsaved data. Obviously, it's easy
> > enough to send an arbitrary request to the app to keep the HTTP
> > session alive, but how can the same effect be accomplished for a
> > continuation? Assuming we have the continuation's id, is there any
> > form of a public API available to "ping" the continuation so that it
> > doesn't expire?
>
> No
>
> > If it's of any consequence, we have configured the
> > continuations manager to use session-bound continuations.
> >
> > Thanks for any info.
>
> Binding the continuations has the benefit of getting them invalidated
> automatically when the session expires. If the continuation expires before the
> session expires, it will be removed at this point (and doesn't wait for the
> session to become invalid).
Right, we decided to bind to the session for exactly that benefit. The
issue is being able to simply update a continuation's last access time
via a request.
> Several weeks ago I refactored the ContinuationsManagerImpl so that it is
> easily
> extensible and you can use your own expiration strategies by simply overriding
> the "expireContinuations" method. Over the next weeks I will work on them -
> maybe this is helpful for you too.
Any idea if those changes are compatible with 2.1.7? Because of some
concurrency issues with 2.1.7's ContinuationsManagerImpl (I haven't
submitted the bug yet), I'm already using a "custom" version. If your
changes will work with 2.1.7, I might as well use that as a base
instead.
> --
> Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
>
> {Software Engineering, Open Source, Web Applications, Apache Cocoon}
>
> web(log): http://www.poetz.cc
> --------------------------------------------------------------------
--
Kris Schneider <mailto:[EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]