RT: session flush and $m->redirect

Given:
$session{errormessge} = 'You blew it!";
$m->redirect($homePage);

When my code performs a redirect, the error message is not being saved for
use in the on the next page.

Is there a magic flush() method that I need to call prior to calling
redirect?

Thanks,
Len.
lenjaffe@jaffesystems.com 614-404-4214 www.lenjaffe.com
Proprietor: http://www.theycomewithcheese.com/ - An Homage to Fromage
Perl Advent Planet http://www.lenjaffe.com/PerlAdventPlanet/ - Advent
Calendars: Perlish and otherwise.
Greenbar http://www.greenbartraining.org/: Grubmaster: 2012-2009, Grub
Asst: 2008, Trained: 2007.

Given:
$session{errormessge} = 'You blew it!";
$m->redirect($homePage);

When my code performs a redirect, the error message is not being saved for
use in the on the next page.

Is there a magic flush() method that I need to call prior to calling
redirect?

You need MaybeRedirectForResults.

Thanks,
Len.

lenjaffe@jaffesystems.com 614-404-4214 www.lenjaffe.com
Proprietor: http://www.theycomewithcheese.com/ - An Homage to Fromage
Perl Advent Planet - Advent Calendars: Perlish and otherwise.
Greenbar: Grubmaster: 2012-2009, Grub Asst: 2008, Trained: 2007.


We’re hiring! http://bestpractical.com/jobs

Best regards, Ruslan.