$session_life) { $_SESSION = array(); session_destroy(); $pag = $_SERVER['SERVER_NAME']."/salir.php?expired=1"; header("Location: http://".$pag); exit(); } }else{ $_SESSION = array(); session_destroy(); $pag = $_SERVER['SERVER_NAME']."/salir.php?expired=1"; header("Location: http://".$pag); exit(); } $_SESSION["timeout"] = time(); $stmt = $pdo->prepare('Select * from fs_sistema(NULL)'); if(!$stmt->execute()){ header("Location: main.php"); exit(); } $sistemasArr = $stmt->fetchAll(); $stmt->closeCursor(); $stmt = null; ?>