I have a modperl handler that sets a cookie and does a redirect if the cookie was not present. The redirected page eventually loads the same page again. In addition, this page is called from a protected portion of the site that requires Basic Auth.
When the redirect calls the mod_perl routine the second or "some" subsequent times, $r->connection->user and $ENV{REMOTE_USER} are both empty or non-existent yet the page does not appear to fail the authentication request and executes and returns html. The failure is repeatable though not consistently so, maybe 70% or more. I'm scratching my head on this one. Any ideas?? Michael