fixes to prior commit
[openemr.git] / library / ajax / unset_session_ajax.php
blob8b3a8a13a597255c4897c2129e7f7f816447b5bd
1 <?php
2 /**
3 * library/ajax/unset_session_ajax.php Clear active patient on the server side.
5 * Copyright (C) 2012 Visolve <services@visolve.com>
7 * LICENSE: This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 3
10 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
18 * @package OpenEMR
19 * @author Visolve <services@visolve.com>
20 * @link http://www.open-emr.org
22 $fake_register_globals=false;
23 $sanitize_all_escapes=true;
25 require_once("../../interface/globals.php");
26 require_once("../pid.inc");
28 //Setpid function is called on receiving an ajax request.
29 if(($_POST['func']=="unset_pid"))
31 setpid(0);
33 ?>