1 | <?php |
2 | |
3 | require_once __DIR__ . "/../lib/php/ejecutaServicio.php"; |
4 | require_once __DIR__ . "/../lib/php/devuelveJson.php"; |
5 | require_once __DIR__ . "/CUE.php"; |
6 | require_once __DIR__ . "/ROL_IDS.php"; |
7 | |
8 | ejecutaServicio(function () { |
9 | |
10 | session_start(); |
11 | |
12 | if (isset($_SESSION[CUE])) { |
13 | unset($_SESSION[CUE]); |
14 | } |
15 | if (isset($_SESSION[ROL_IDS])) { |
16 | unset($_SESSION[ROL_IDS]); |
17 | } |
18 | |
19 | session_destroy(); |
20 | |
21 | devuelveJson([]); |
22 | }); |
23 |