Apache-AuthCookieURL
view release on metacpan or search on metacpan
AuthCookieURL.pm view on Meta::CPAN
# I'd like to be able to do this so don't need all that httpd.conf config
# $r->custom_response( MOVED , \&error_document );
# $r->custom_response( REDIRECT , \&error_document );
my $debug = $r->dir_config( DEBUG ) || 0;
$r->log_error('TRANS:Requested URI = \'' . $r->the_request() . "'" ) if $debug >= 3;
my ( undef, $session, $rest ) = split m[/+], $r->uri, 3;
$rest ||= '';
my $prefix = $r->dir_config('SessionPrefix') || 'Session-';
# This way simply adding the PerlTransHandler is enough to enable URL munging
$r->notes( Session_prefix => $prefix );
return DECLINED unless $session && $session =~ /^$prefix(.+)$/;
( run in 0.998 second using v1.01-cache-2.11-cpan-71847e10f99 )