Skip to content

Commit 25c72d9

Browse files
author
nveid
committed
SESSION data on logout is really destroyed. Thus new configuration options, such
as ones affecting theme can take place now. Affected files: interface/web/login/logout.php
1 parent 4600d73 commit 25c72d9

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

interface/web/login/logout.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
$_SESSION["s"]["user"] = null;
6565
$_SESSION["s"]["module"] = null;
6666
$_SESSION['s_old'] = null;
67-
session_write_close();
6867

6968
//header("Location: ../index.php?phpsessid=".$_SESSION["s"]["id"]);
7069

@@ -77,5 +76,8 @@
7776
echo('URL_REDIRECT:index.php');
7877
}
7978
}
80-
exit;
81-
?>
79+
// Destroy the session completely now
80+
$_SESSION = array();
81+
session_destroy();
82+
session_write_close();
83+
?>

0 commit comments

Comments
 (0)