Quick background - this is mod perl 2 version 2.0.0 on Apache 2 prefork on Solaris 10
Issue - when I access a file in folder "a" the variable FOO gets set using PerlSetEnv (see code below). When I access a file (script file) in a different folder (lets say b) I can still see FOO defined in the environment on some requests (assuming this request is the same process that handled the a folder request - if I refresh enough times FOO will bet set on all requests). The trick is the file accessed in folder a is just plain html. To make it more interesting if I do access a script in folder a then the FOO variable is not set when access folder b. I would assume that the variable FOO should only be set in the environment when I am in folder a.
What am I missing?
Relavent files:
Portion of ssl.conf
Include conf/jsite/A_SECURE.conf
All of A_SECURE.conf
<Directory ~ /a/>
PerlSetEnv FOO "BAR"
AuthName "A"
AuthType A::Authenticate2
PerlAuthenHandler A::Authenticate2->verifyUser
require valid-user
</Directory>
All of Authenticte2
package A::Authenticate2;
use strict;
sub verifyUser($$)
{
use Apache2::Const qw{OK};
return OK;
}
1;
Startup.pl
$ENV{MOD_PERL} or die "not running under mod_perl!";
use base qw(ModPerl::Registry);
use A::Authenticate2;
1; #return true value
Brian Becker