Session: centralise how session tokens are handled

This commit is contained in:
Aaron committed 2023-11-20 20:59:35 +01:00
1 parent 5f778d73b4
commit 65ee07d95b
2 files changed
+36 -22

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ class Logout extends HTMLController
public function __construct()
{
// Clear the entire sesssion.
$_SESSION = [];
Session::clear();
// Back to the frontpage you go.
header('Location: ' . BASEURL);