Primer commit del sistema avantika sin cambios
This commit is contained in:
19
ajax/logout.php
Executable file
19
ajax/logout.php
Executable file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
include_once('../init.php');
|
||||
include_once('../config.php');
|
||||
include_once(DOC_ROOT.'/libraries.php');
|
||||
|
||||
unset($_SESSION["loginKey"]);
|
||||
session_destroy();
|
||||
|
||||
$tipoUsr = $_SESSION['tipoUsr'];
|
||||
|
||||
echo 'ok[#]';
|
||||
|
||||
if($tipoUsr == 'Cliente')
|
||||
echo 'facturas';
|
||||
else
|
||||
echo 'login';
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user