Your return is fine. What you're not understanding is that the runmode
does not change. From Perl's and C::A's point-of-view, you're just
calling another subroutine.

OK, thanks for verifying that.

I only passed it to the template for verification. I really need the
proper run_mode saved in the session in case the session expires and
I want to know where to return.

I just figured out how, and why, to use cgiapp_prerun yesterday and I
already went back to trying to do things the wrong way. :(  So I'll put

  unless ($session->param('Group2') >= 3) {
     $self->prerun_mode('mode1');
  }

in cgiapp_prerun where it belongs.  Thanks to you and Michael for
reminding me.

--Jon


--------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[email protected]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to