Portal Update Forum Request (#2068)
[openemr.git] / interface / logout.php
blobd6e55c5210eabcf60832eb5154aaff02f6d49aad
1 <?php
2 /**
3 * Logout script.
5 * @package OpenEMR
6 * @link http://www.open-emr.org
7 * @author Tony McCormick <tony@mi-squared.com>
8 * @author Kevin Yeh <kevin.y@integralemr.com>
9 * @author Brady Miller <brady.g.miller@gmail.com>
10 * @copyright Copyright (c) 2018 Brady Miller <brady.g.miller@gmail.com>
11 * @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 require_once("globals.php");