aboutsummaryrefslogtreecommitdiff
path: root/user/logout.php
blob: 319a43a6caa2513933ec2b661f486ce82c84031d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
require '../config.php';
require_once(TEMPLATES_PATH . "/header.php");

session_start();
unset($_SESSION['user_name']);
unset($_SESSION['user_id']);
unset($_SESSION['user_can_edit_bugs']);
unset($_SESSION['user_can_edit_reports']);

echo 'Session cleared';
header("Refresh: 2; URL=$_SERVER[HTTP_REFERER]");

require_once(TEMPLATES_PATH . "/footer.php");
?>