-
Notifications
You must be signed in to change notification settings - Fork 0
/
cerrar_session.php
60 lines (53 loc) · 1.84 KB
/
cerrar_session.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
/**
* En este frame se van cargado cada una de las funcionalidades del sistema
*
* Descripcion Larga
*
* @category
* @package SGD Orfeo
* @subpackage Main
* @author Community
* @author Skina Technologies SAS (http://www.skinatech.com)
* @license GNU/GPL <http://www.gnu.org/licenses/gpl-2.0.html>
* @link http://www.orfeolibre.org
* @version SVN: $Id$
* @since
*/
/* ---------------------------------------------------------+
| INCLUDES |
+--------------------------------------------------------- */
/* ---------------------------------------------------------+
| DEFINICIONES |
+--------------------------------------------------------- */
//session_start();
//error_reporting(7);
//$dir_raiz = '.';
/* ---------------------------------------------------------+
| MAIN |
+--------------------------------------------------------- */
session_cache_limiter();
session_start();
$ruta_raiz = ".";
if($_SESSION["colorFondo"]) $_SESSION["colorFondo"] = "8cacc1";
$imagenes=$_SESSION["imagenes"];
include_once "$ruta_raiz/include/db/ConnectionHandler.php";
$db = new ConnectionHandler($ruta_raiz);
error_reporting(7);
$db->conn->SetFetchMode(ADODB_FETCH_ASSOC);
$fecha = "'FIN ".date("Y:m:d H:mi:s")."'";
//$db->conn->debug=true;
$isql = "update usuario set usua_sesion=".$fecha." where USUA_SESION like '%".session_id()."%'";
//echo "Fecha $fecha "; // --- Session ->".substr(session_id(),0,29);
if (!$db->conn->Execute($isql))
{
echo "<p><center>No pude actualizar<p><br>";
}
// fin cierre session
session_destroy();
$PHPSESSID = "";
session_id("CorreLibre".date("YMDIS"));
session_start("dasdfadf");
//echo "-->".session_id();
include "./paginaError.php"
?>