manejo de tiempo de session

This commit is contained in:
humano 2018-10-21 12:24:40 -05:00
parent fa8427b966
commit f422396083
2 changed files with 13 additions and 2 deletions

View File

@ -1,5 +1,8 @@
<?php session_start(); <?php session_start();
//ini_set('display_errors', 'On'); //ini_set('display_errors', 'On');
$timestamp=time();
setcookie("timestamp",$timestamp,($timestamp + 5000));
$_SESSION['timestamp']= $timestamp;
if(isset($_REQUEST['debug'])) { if(isset($_REQUEST['debug'])) {
print_r( $_SESSION ); print_r( $_SESSION );
ini_set('display_errors', 'On');} ini_set('display_errors', 'On');}
@ -1168,6 +1171,14 @@ $panel_aplicaciones = panel_aplicaciones('1',"","");
".aplicaciones_listado("$id_empresa",'','nav','')." ".aplicaciones_listado("$id_empresa",'','nav','')."
</ul> </ul>
</li> </li>
<li>
<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'><i class='fa fa-refresh'></i></a></span>
</div>
</form>
</li>
</ul> </ul>
<ul id='menu_social' class='nav navbar-nav navbar-right'> <ul id='menu_social' class='nav navbar-nav navbar-right'>
@ -1335,7 +1346,7 @@ document.oncopy = addLink;
<?php } ?> <?php } ?>
</head> </head>
<body data-spy="scroll" data-target="#toc"> <body data-spy="scroll" data-target="#toc" onload="revisarSession()"; >
<?php <?php

2
milfs

@ -1 +1 @@
Subproject commit 3f72450e6bfdd1759235559a81847dbb4dfdca50 Subproject commit fa0da963dd2cf78a02d0c299367b5e54d9cbdfe1