Re: [Maypole] "Redirect, Get Missing Params, Return with Params" problem

From: Peter Speltz (peterspeltz at yahoo.com)
Date: Wed Dec 15 2004 - 00:10:03 GMT


--- Simon Flack <sf at flacks.net> wrote:

> Simon Flack wrote:
> >> Customer::do_edit {
> >> # create object
> >> ...
> >> $r->return_from_redirect({cstmr_id => $obj->id}) if $r->redirect;
> >
> >
> > Wouldn't you need return $r->return_from_redirect(... ?

Yeah. that's what i meant
> >
> >> .. .
> >> }
>
> ... perhaps not. I suppose it depends what follows. I suppose I'm asking
> whether you should rename that method since it doesn't actually return
> from the redirect, it restores the session and calls the referer.

good point. Hmm. maybe "return $r->from_redirect() if $r->redirect"
 i think i like that.

>
> Also, you may need to think about whether/how you can redirect from a
> redirect (... and on...) and maintain state/user journey properly.
>

good tip. thanks. Important for considering how the redirects are saved accross
http requests. I'm currently storing them in a Apache::Session object(
$r->session ) I'll need to figure that out. A question I have is why people
still use cgi . I honestly don't understand unless they only have cgi
capabilities on someone elses server.

> Simon
>
> _______________________________________________
> maypole mailing list
> maypole at lists.netthink.co.uk
> http://lists.netthink.co.uk/listinfo/maypole
>

=====
pjs

                
__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com
 

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT