Apache-AuthCookieNTLM
view release on metacpan or search on metacpan
lib/Apache/AuthCookieNTLM.pm view on Meta::CPAN
sub check_cookie {
my $self = shift;
return 1 if ( $cookie_values eq {} || $cookie_values->{username} ne $self->{username} );
return undef;
}
# Private method to set the cookie
sub set_cookie {
my ($self, $conf) = @_;
# Must have the user name to validate check_cookie()
$cookie_values->{'username'} = $self->{'username'};
$cookie_values->{'userdomain'} = $self->{'userdomain'};
while( my ($name, $value) = each %{$conf}) {
$cookie_values->{$name} = $value;
}
};
# This is the method which others could overload to
# set what ever values they want.
( run in 1.072 second using v1.01-cache-2.11-cpan-a5abf4f5562 )