xref: /web-bugs/www/logout.php (revision 638a3fb1)
1<?php
2
3session_start();
4
5require_once '../include/prepend.php';
6
7if (!isset($_SESSION['user']) || empty($_SESSION['user'])) {
8    redirect('index.php');
9}
10
11unset($_SESSION['user']);
12session_destroy();
13
14response_header('Logout');
15
16?>
17
18<p>You've been logged out.</p>
19
20<?php response_footer();
21