Lines 547-553
subtest 'checkauth & check_cookie_auth' => sub {
Link Here
|
547 |
|
547 |
|
548 |
# Logging out! |
548 |
# Logging out! |
549 |
$cgi->param('logout.x', 1); |
549 |
$cgi->param('logout.x', 1); |
550 |
( $userid, $cookie, $sessionID, $flags ) = C4::Auth::checkauth($cgi, 0, {catalogue => 1}); |
550 |
$cgi->delete( 'userid', 'password' ); |
|
|
551 |
{ |
552 |
local *STDOUT; |
553 |
my $stdout; |
554 |
open STDOUT, '>', \$stdout; |
555 |
( $userid, $cookie, $sessionID, $flags ) = C4::Auth::checkauth($cgi, 0, {catalogue => 1}); |
556 |
close STDOUT; |
557 |
} |
551 |
is( $sessionID, undef ); |
558 |
is( $sessionID, undef ); |
552 |
is( $ENV{"HTTP_COOKIE"}, "CGISESSID=$first_sessionID", 'HTTP_COOKIE not unset' ); |
559 |
is( $ENV{"HTTP_COOKIE"}, "CGISESSID=$first_sessionID", 'HTTP_COOKIE not unset' ); |
553 |
( $auth_status, $session) = C4::Auth::check_cookie_auth( $first_sessionID, {catalogue => 1} ); |
560 |
( $auth_status, $session) = C4::Auth::check_cookie_auth( $first_sessionID, {catalogue => 1} ); |
554 |
- |
|
|