manejo de tiempo de session

This commit is contained in:
humano 2018-10-21 12:58:03 -05:00
parent f422396083
commit 4e4f895acb
3 changed files with 14 additions and 6 deletions

View File

@ -1,8 +1,5 @@
<?php session_start();
//ini_set('display_errors', 'On');
$timestamp=time();
setcookie("timestamp",$timestamp,($timestamp + 5000));
$_SESSION['timestamp']= $timestamp;
if(isset($_REQUEST['debug'])) {
print_r( $_SESSION );
ini_set('display_errors', 'On');}
@ -16,7 +13,12 @@ if(isset($_REQUEST['debug'])) {
require ("milfs/includes/markdown.php");
require ("milfs/includes/parametrizacion.php");
require ("milfs/includes/simple_html_dom.php");
$xajax->processRequests(); ?>
$xajax->processRequests();
$timestamp=time();
setcookie("timestamp",$timestamp,($timestamp + 5000));
$_SESSION['timestamp']= $timestamp;
?>
<!DOCTYPE html>
<html lang="en">
<head >

2
milfs

@ -1 +1 @@
Subproject commit fa0da963dd2cf78a02d0c299367b5e54d9cbdfe1
Subproject commit ade42da280750575989a5cef5b144dc1f54c46b1

6
salir.php Normal file
View File

@ -0,0 +1,6 @@
<?php if(!isset($_SESSION)) { if(!isset($_SESSION)) { session_start(); } }
session_destroy();
$pagina=$_SERVER['HTTP_REFERER'];
header("Location:./index.php");
?>