[cgiapp] How do I implement this pattern: Resume interrupted POST after login

Clayton Scott clayton.scott at gmail.com
Tue Dec 2 10:24:49 EST 2008


Here is the scenario:

1. The user is logged in and accesses a form.
2. They walk away from the computer until their session has timed out
3. They come back and spend twenty minutes filling out the form
4. They POST the content of the form

I want to prompt them for login and then resume the interrupted operation.
Login is not implemented as a run-mode but in another application.

How can I capture the current query, take them away to be logged in and then
replay that POST?
Does CAP::Authenticate give this to me for free?

I went as far as freezing the query and stuffing it into the session. Short
of using LWP
to rerun the POST what are my options?

I had found one thread in the archives that seems to cover this off but it's
not too clear
what rjbs example does and I want to know if anything new has arisen since
then.
http://www.mail-archive.com/cgiapp@lists.openlib.org/msg04752.html

Thanks,
Clayton
-- 

Clayton Scott
clayton.scott at gmail.com


More information about the cgiapp mailing list