Ejemplo n.º 1
0
<?php

//require_once("c_role.php");
require_once "c_transactions.php";
//$role = new Role();
$db = new db_transactions();
$db->setMenuSession();
$inactive = 600;
if (!isset($_SESSION['timeout'])) {
    header("Location: logout.php");
} else {
    $session_life = time() - $_SESSION['timeout'];
    if ($session_life > $inactive) {
        header("Location: logout.php");
    }
}
$_SESSION['timeout'] = time();
?>
  
<!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>OBP Dashboard</title>
    <!-- Bootstrap Core CSS -->
    <link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">