//comparamos el tiempo transcurrido if ($tiempo_transcurrido >= 600) { //si pasaron 10 minutos o más session_destroy(); // destruyo la sesión header("Location: ../index.html"); //envío al usuario a la pag. de autenticación //sino, actualizo la fecha de la sesión } else { $_SESSION["ultimoAcceso"] = $ahora; } } require '../header.php'; require "../Modelo/MTipo_O.php"; $md = new Tipo_Oficial(); $sx = $md->Cargar_Tipo_O(); ?> <h1 style="margin-top: -60px;">TIPO DE OFICIAL</h1> <div class="row" style="margin-top: -90px;"> <table class="table table-striped table-bordered"> <thead> <tr> <th style="background:black; color:white; text-align: center;">Codigo</th> <th style="background:black; color:white; text-align: center;">Nombre</th> <th style="background:black; color:white; text-align: center;">Descripcion</th> <th style="background:black; color:white; text-align: center;">Cantidad</th> <th style="background:black; color:white; text-align: center;">Acciones</th> </tr> </thead> <tbody>