I'm not sure if everyone who answered the last question about this was
on the same pages, but several people suggested something like this. (I
think.)
my $q = CGI->new();
...
if ($q->param('act') eq 'Log in as someone else') {
$q->param(-name=>'act',-value=>'');
print $q->header(-status=>'401 HTTP_UNAUTHORIZED');
} else {
&something_else_that_works_just_fine;
}
Initially, this does what I want and forces the little browser dialog
requesting id and password. Unfortunately, it doesn't let them back in,
even if they use valid data to authenticate as another (or even the
same) user.
What am I missing????
I'm using .htacess and mod_auth_mysql (if that makes any difference),
NOT a PerlAuthHandler.
John
on the same pages, but several people suggested something like this. (I
think.)
my $q = CGI->new();
...
if ($q->param('act') eq 'Log in as someone else') {
$q->param(-name=>'act',-value=>'');
print $q->header(-status=>'401 HTTP_UNAUTHORIZED');
} else {
&something_else_that_works_just_fine;
}
Initially, this does what I want and forces the little browser dialog
requesting id and password. Unfortunately, it doesn't let them back in,
even if they use valid data to authenticate as another (or even the
same) user.
What am I missing????
I'm using .htacess and mod_auth_mysql (if that makes any difference),
NOT a PerlAuthHandler.
John