[cgiapp] calling another runmode

Michael Peters mpeters at plusthree.com
Wed Jan 21 14:45:29 EST 2009


Terrence Brannon wrote:

> Can I simply do $self->logout_confirmation_runmode to 'internal redirect' to
> another runmode?

Yes. If you don't have anything that depends on what the value of current_runmode() is, then that's 
the simplest (and fastest) approach. If you do need current_runmode() to be updated then look at 
C::A::Plugin::Forward. If you need any cookies to be updated between run modes then you'll need to 
go back to the client and then come back. Pretty easy and even easier with C::A::Plugin::Redirect.

-- 
Michael Peters
Plus Three, LP



More information about the cgiapp mailing list