summaryrefslogtreecommitdiff
path: root/logout.php
blob: 50dcd761391c69fde6246ae9d9bdaf76db115c56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

# include the main site config where various global variables
# and libraries are included
require("config.php");

# kill session variables and then the session itself
session_unset();
session_destroy();

# send the user back to wherever they were
header("Location: {$config->_previousUri}");
exit;

?>