forked from qwerty/milfs
manejo de tiempo de session
This commit is contained in:
parent
fa0da963dd
commit
513c482c61
19
index.php
19
index.php
@ -1,5 +1,7 @@
|
||||
<?php
|
||||
session_start();
|
||||
<?php session_start();
|
||||
$timestamp=time();
|
||||
setcookie("timestamp",$timestamp,($timestamp + 5000));
|
||||
$_SESSION['timestamp']= $timestamp;
|
||||
if($_SESSION['grupo'] != "administrador") {
|
||||
// header("Location: ../");
|
||||
}
|
||||
@ -184,7 +186,7 @@ legend.legend-area {
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body >
|
||||
<body onload="revisarSession()"; >
|
||||
<?php if($embebido ==1) {
|
||||
if($form!=''){ echo formulario_embebido($form,$opciones);}
|
||||
elseif($identificador !='') { echo mostrar_identificador($identificador,$id);}
|
||||
@ -207,8 +209,12 @@ else{}
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
|
||||
<a class="navbar-brand" href="#"><img src="favicon-152.png" style="width:60px" alt="MILFS" title="Multi Interactive Light Form System"></a>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php echo milfs() ?>
|
||||
</div><!-- /.container-fluid -->
|
||||
@ -220,6 +226,7 @@ else{}
|
||||
|
||||
<div id='debug'></div>
|
||||
<div class='container' id='contenedor_principal'>
|
||||
|
||||
<div id='contenido'>
|
||||
<div class='row'>
|
||||
<div id='' class='col-sm-6'>
|
||||
@ -305,5 +312,11 @@ $(document).ready(function() {
|
||||
});
|
||||
|
||||
</script>
|
||||
<form name='form_session' class='navbar-form navbar-left'>
|
||||
<div class='input-group'>
|
||||
<input type='text' name='tiempo_session' size='30' class='form-control input-sm' readonly>
|
||||
<span class='input-group-addon'><a href='#' onclick="location.reload();" title='Renovar'>Reload</a></span>
|
||||
</div>
|
||||
</form><?php echo $_SESSION['timestamp']; ?>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user