Ver Mensaje Individual
  #4 (permalink)  
Antiguo 25/04/2012, 09:45
daniel7754
 
Fecha de Ingreso: abril-2012
Mensajes: 20
Antigüedad: 12 años
Puntos: 0
Respuesta: Problema con contador de visitas

Finalmente he utilizado este código y me ha funcionado a la perfección. Muchas gracias Triby.

Código PHP:
Ver original
  1. $limite = time() - 1800;
  2.     if(!isset($_SESSION['tiempo']) || $_SESSION['tiempo'] < $limite) {
  3.     //Aquí he introducido las acciones correspondientes para subir el contador
  4.     }
  5.     $_SESSION['tiempo'] = time();