Apache-AuthCookieURL
view release on metacpan or search on metacpan
AuthCookieURL.pm view on Meta::CPAN
404142434445464748495051525354555657585960
# Normall this would convert credentials into a session key
# A really silly session key.
return
time
. $$ .
int
rand
$$;
# Or return a flag that authen_ses_key can look for
return
'invalid:account_expired'
;
# Or return a message that will be placed in a 'Reason' cookie
return
(
''
,
'User Blocked'
);
}
sub
authen_ses_key ($$$) {
my
(
$self
,
$r
,
$session
) =
@_
;
# Validate the session and convert it into REMOTE_USER
# This is using the session key as the REMOTE_USER
( run in 0.301 second using v1.01-cache-2.11-cpan-87723dcf8b7 )