Browse Source

manejo de tiempo de session

master
humano 1 year ago
parent
commit
4e4f895acb
3 changed files with 14 additions and 6 deletions
  1. +7
    -5
      index.php
  2. +1
    -1
      milfs
  3. +6
    -0
      salir.php

+ 7
- 5
index.php 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 >

+ 1
- 1
milfs

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

+ 6
- 0
salir.php 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");
?>

Loading…
Cancel
Save