> -----Original Message----- > From: George Valpak [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 16, 2002 3:26 PM > To: Vegard Vesterheim > Cc: [EMAIL PROTECTED] > Subject: Re: AuthCookieDBI help please.... (more info) > > > I am still having trouble with Apache::AuthCookieDBI. > > I tried moving the PerlSetVar line out of the virtual server to > the main server but nothing in the behavior changed. > > Is it possible that the "Apache->server->dir_config()" code is > somehow wrong?
Move ALL mention of the AuthCookieDBI directives OUT of any Directory, Location, or VirtualServer blocks. Define the secret key PerlSetVar BEFORE loading PerlModule directive. The relevant section of my server config looks like this: # These must be set PerlSetVar AdminDBI_DSN "dbi:Oracle:STATS" PerlSetVar AdminDBI_SecretKeyFile /etc/httpd/conf/sercret.key PerlSetVar AdminDBI_SecretKey "XXXXXXX" # moved BELOW AdminDBI_SecretKeyFile so the directive is available at # BEGIN{} time PerlModule Apache::AuthCookieDBI PerlSetVar AdminPath /admin PerlSetVar AdminLoginScript /scripts/adminlogin.pl #PerlSetVar AdminLoginScript /error/adminlogin.html ## more directives here Hope this helps! L8r, Rob #!/usr/bin/perl -w use Disclaimer qw/:standard/;