Skip to content

Commit b26f8aa

Browse files
committed
finish session on error
1 parent 70f1990 commit b26f8aa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

public_html/lists/admin/connect.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,10 +503,14 @@ function Fatal_Error($msg, $documentationURL = '')
503503
$_SESSION['fatalerror'] = 0;
504504
}
505505
++$_SESSION['fatalerror'];
506-
header('HTTP/1.0 509 Fatal error');
506+
header('HTTP/1.0 500 Fatal error');
507507
if ($_SESSION['fatalerror'] > 5) {
508508
$_SESSION['logout_error'] = s('Too many errors, please login again');
509+
$_SESSION['adminloggedin'] = '';
510+
$_SESSION['logindetails'] = '';
511+
session_destroy();
509512
Redirect('logout&err=2');
513+
exit;
510514
}
511515

512516
if ($GLOBALS['commandline']) {

0 commit comments

Comments
 (0)