Skip to content
Snippets Groups Projects
Commit fa564a74 authored by Peter Rotich's avatar Peter Rotich
Browse files

Destroy staff session on logout

parent 2f8156ab
No related branches found
No related tags found
No related merge requests found
......@@ -25,8 +25,11 @@ $thisstaff->logOut();
//Clear any ticket locks the staff has.
TicketLock::removeStaffLocks($thisstaff->getId());
//Clear upgrader session on logout.
$_SESSION['ost_upgrader'] = null;
//Destroy session on logout.
// TODO: Stop doing this starting with 1.9 - separate session data per
// app/panel.
session_unset();
session_destroy();
@header('Location: login.php');
require('login.php');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment