777b50cacccdfcac393f034359f05451473747e7
[atutor.git] / mods / atutor_opencaps / opencaps / logout.php
1 <?php
2 /*
3  * OpenCaps
4  * http://opencaps.atrc.utoronto.ca
5  * 
6  * Copyright 2009 Heidi Hazelton
7  * Adaptive Technology Resource Centre, University of Toronto
8  * 
9  * Licensed under the Educational Community License (ECL), Version 2.0. 
10  * You may not use this file except in compliance with this License.
11  * http://www.opensource.org/licenses/ecl2.php
12  * 
13  */
14
15 define('INCLUDE_PATH', 'include/');
16 require(INCLUDE_PATH.'vitals.inc.php');
17
18 unset($_SESSION['login']);
19 unset($_SESSION['valid_user']);
20 unset($_SESSION['mid']);
21 unset($_SESSION['username']);
22
23 unset($_SESSION['is_admin']);
24 unset($_SESSION['errors']);
25 unset($_SESSION['notices']);
26
27 $_SESSION['feedback'][] = 'Successfully logged out.';
28
29 header('Location: index.php');
30 exit;
31
32 ?>