fix: check if OemrUI element exists before accessing classList (#6278)
[openemr.git] / interface / logout.php
blob2226562362067f582e97705b77829f4f1007ca5b
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.php 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");