[Catalyst] process a restored request

catalyst at jgb.ca catalyst at jgb.ca
Tue Jan 8 19:58:17 GMT 2008


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



More information about the Catalyst mailing list