Additional mods to previous commit (still discussing UTF8 enforcing)
[openemr.git] / patients / logout.php
blob3b3f7cdbca0bf51c9eff68349c3897fb3ebbd3f2
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');
20 //