> I've tried using notes and pnotes that I set in the
> authentication and authorization phases, but it looks like the
> custom_response actually creates a new request (or is it a subrequest?),
> and the notes and pnotes that I set aren't being seen by the
> M

you're on the right track here.  custom_responses are subrequests, so you
can access the notes via

$r->prev->notes

be careful, though - that will blow up if $r->prev is undefined, which it
will be if your error page is somehow accessed directly.

> Any better ideas on how to handle this,
> other than putting it in a get request and redirecting?

you could also stash data in the query string

$r->custom_response(HTTP_FORBIDDEN, "/foo/?why+you+were+sent+here");

then get at it directly via $r->args.

see recipe 8.6 in the mod_perl developer's cookbook for more of this kind of
thing.

HTH

--Geoff


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to