[Catalyst] process a restored request
Jonas Alves
jonas.alves at gmail.com
Tue Jan 8 22:44:04 GMT 2008
On Jan 8, 2008 7:58 PM, <catalyst at jgb.ca> wrote:
> Hi,
> in my application, if a client issues a request after say 30 minutes of
> inactivity, I want to answer his request only after successfull
> authentication.
>
> Ideally, I would simply serialize $c->request in the session, ask for
> authentication, then if successfull restore the stored request to $c and call
> $c->dispatch. But after playing around a bit, it appears not to be that
> simple (the context is stored in the request as '_context', the body seems
> fetched only on-demand, dispatch seems to need some prepare_* methods to be
> called).
>
> I searched the list and only found this proposition for a similar mechanism:
> http://lists.scsys.co.uk/pipermail/catalyst/2007-February/012256.html
>
> Am I missing an easier way of doiing this?
>
> Julien Gervais-Bird
>
Catalyst::Plugin::Continuation should do that. But it appears to be
broken with the current Catalyst version. Or at least I was not able
to make it work.
--
Jonas
More information about the Catalyst
mailing list