Having further complications with this issue - it doesn't seem to be working fully. Take this example:
<Location ~ /StockControl/Inventory$>
SetHandler perl-script
PerlAccessHandler XTracker::Authenticate
PerlResponseHandler XTracker::Stock::Inventory::SearchForm
</Location>
Authenticate is meant to redirect to /Home with the following code:
$r->headers_out->set( Location => "/Home" );
return REDIRECT;
This doesn't seem to be working at all - the redirect is being completely ignored, an error message is passed to the browser but then the browser displays the rest of the page as if an OK had been passed.
Does anyone know how this can be changed to work in mod_perl 2?
The docs mentioned in the previous post mention that PerlAccessHandler should return FORBIDDEN or OK, does this mean REDIRECT cannot be returned at all? Also, the page does not mention REDIRECT anywhere - has this been deprecated? How should it be replaced?
Thanks! |