edit_list script updates
[openemr.git] / patients / logout.php
blob3af5a90444b7fafa38cd6d6245cd8a18c3d4e97e
1 <?php
2 // Copyright (C) 2011 Cassian LUP <cassi.lup@gmail.com>
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
9 //continue session
10 session_start();
12 //landing page definition -- where to go after logout
13 $landingpage = "index.php?site=".$_SESSION['site_id'];
15 //log out by killing the session
16 session_destroy();
18 //redirect to pretty login/logout page
19 header('Location: '.$landingpage.'&logout');