diff --git a/C4/Auth.pm b/C4/Auth.pm index 6c45d42d1d..20f8d6a681 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -918,7 +918,6 @@ sub checkauth { $cookie = $cookie_mgr->clear_unless( $query->cookie, @$cookie ); C4::Context::_unset_userenv($sessionID); $sessionID = undef; - undef $userid; # IMPORTANT: this assures us a new session in code below if ($cas and $caslogout) { logout_cas($query, $type);