Fixes #4497 - FHIR search via POST (#4498)
[openemr.git] / interface / logout.php
blob42b54fd9d35278255ad18c24c8be3c81937b173c
1 <?php
3 /**
4 * Logout script.
6 * @package OpenEMR
7 * @link http://www.open-emr.org
8 * @author Tony McCormick <tony@mi-squared.com>
9 * @author Kevin Yeh <kevin.y@integralemr.com>
10 * @author Brady Miller <brady.g.miller@gmail.com>
11 * @copyright Copyright (c) 2018 Brady Miller <brady.g.miller@gmail.com>
12 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
15 // Set the GET auth parameter to logout.
16 // This parameter is then captured in the auth.inc script (which is included in globals.php script) and does the following:
17 // 1. Logs out user
18 // 2. Closes the php session
19 // 3. Redirects user to the login screen (maintains the site id)
20 $_GET['auth'] = "logout";
21 // Set $sessionAllowWrite to true to prevent session concurrency issues during authorization/logout related code
22 $sessionAllowWrite = true;
23 require_once("globals.php");