At 22:56 25.04.2002, Doran L. Barton wrote:
>I've gone over this several times and I'm pretty sure I've done everything
>right. So... I started hacking debug statements into AuthCookieDBI.pm. What
>I discovered was that the %SECRET_KEYS hash is not being populated at
>server startup via the BEGIN block in AuthCookieDBI. Here's a snippet of the
>code:
>
> my @keyfile_vars = grep {
> $_ =~ /DBI_SecretKeyFile$/
> } keys %{ Apache->server->dir_config() };
>
>I inserted a debug statement right after this to see what was being placed
>into this list. Nothing.
>
>So... I checked out the return value of Apache->server->dir_config().
>Nothing. Not a darn thing is being returned this function... which is
>puzzling.
I guess you are doing this?
<Location /foo>
PerlSetVar ...DBI_SecretKeyFile something.file
</Location>
In that case, Apache->server->dir_config() won't work. It only applies to
server-wide settings (see recent thread about the same issue).
Putting the PerlSetVar's outside the <Location> section should fix your
problem.
Actually, if you look at the example in AuthCookieDBI, it's like that. But
it doesn't state any warnings about this.
Hope this can help.
--
Per Einar Ellefsen
[EMAIL PROTECTED]