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).

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.

--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                       web(log): http://www.poetz.cc
--------------------------------------------------------------------

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