[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing $r->pnotes on $r->internal_redirect


Fred Moyer wrote:
Greetings,

I have a handler that calls $r->internal_redirect('/new/location'). I want to avoid recomputing the data I have in $r->pnotes at the time of the redirect, and instead magically pass that pnotes data to the $r in the new handler somehow.

I can stash the $r->pnotes data in $c->pnotes, then grab it from $c->pnotes in the new handler. Heck, I could even use $c->pnotes instead of $r->pnotes and forget about the problem (well maybe it's that easy, but I'm not sure!).

Or, I could just use $r->prev->pnotes. Duh, sorry for the noise - somehow never got around to using $r->prev until now :)


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.