Apache-AutoLogin
view release on metacpan or search on metacpan
AutoLogin.pm view on Meta::CPAN
}
$log->info("header $user from $client_identifier");
# Look for any cookies
my %cookiejar = Apache::Cookie->new($r)->parse;
## If the user has called the predefined logout page,
## invalidate the cookie
if ($r->uri() eq $logout_uri)
{
$log->info("User from $client_identifier logged out (".$r->uri().")");
my $i=0;
my $temp_key="";
my $temp_key2="";
my $temp_key3="";
while ($i<32)
AutoLogin.pm view on Meta::CPAN
PerlSetVar AutoLoginCookieLifetimeInDays "3"
# The encryption key can have any length, but the longer the better
PerlSetVar AutoLoginEncryptionKey "abcdefghijklmnopqrstuvwxyz123456"
# set the logout page: Important, make
# sure that you specify something
# that gets not cached by proxies, or
# else the cookie won't be invalidated.
PerlSetVar AutoLoginLogoutPage "/logout.php"
# The name of the cookie
PerlSetVar AutoLoginAuthName "AutoLogin rulez"
# Here comes the basic authentication
# module of any flavour. Apache::AutoLogin
AutoLogin.pm view on Meta::CPAN
=head2 AutoLoginCookieLifetimeInDays "3"
Lifetime of the cookie in days.
=head2 AutoLoginEncryptionKey "abcdefghijklmnopqrstuvwxyz123456"
The encryption key to use. Based on this key via md5 some fairly random 256 bit key will be generated. You may change it regularly.
=head2 AutoLoginLogoutPage "/logout.php"
The logout URI. Make sure, that it does not get cached by any proxies or else the cookie cannot be invalidated and that this URI can be accessed without authentication!
=head2 AutoLoginAuthName "AutoLogin rulez"
The name of the cookie.
=head1 License
Perl artistic license.
( run in 0.235 second using v1.01-cache-2.11-cpan-4d50c553e7e )