in reply to PerlAuthenHandler Problems

OP> What am I missing to get PerlAutenHandler to read $r->notes or $r->headers_out->get??

Becouse they live only in the duration of the current request. you can not get the same infor across different requests.

You probably can use something like the following though:
my %auth; sub handler { my $r = shift; my($res, $password) = $r->get_basic_auth_pw; return $res if $res != OK; my $user = $r->user; if (exists $auth{$user}){ return Apache2::Const::OK; } ..... $auth{$user} = $user; return Apache2::Const::OK; } 1;
(untested)
Regards,
Xicheng

Replies are listed 'Best First'.
Re^2: PerlAuthenHandler Problems
by yibbiy (Initiate) on Jul 19, 2007 at 12:36 UTC
    Works like a charm. Thank your from saving me from the evil cookie monsters!!!! Sometimes you just think to hard about the situation at hand and make it to complex. Thanks for simplifying it! Yibbiy