Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/05/2013, 11:36
Avatar de angelAparicio
angelAparicio
 
Fecha de Ingreso: julio-2009
Ubicación: Sevilla
Mensajes: 307
Antigüedad: 14 años, 9 meses
Puntos: 22
Respuesta: Problemas al recordar session

Creo que estás usando mal las funciones getenv en config.php

Prueba a cambiar:
Código PHP:
Ver original
  1. if ($HTTP_X_FORWARDED_FOR == "")
  2.     {
  3.         $ip2 = getenv(REMOTE_ADDR);
  4.     }
  5.     else
  6.     {
  7.         $ip2 = getenv(HTTP_X_FORWARDED_FOR);
  8.     }

por:
Código PHP:
Ver original
  1. if ( getenv('HTTP_X_FORWARDED_FOR') ) {
  2.         $ip2 = getenv('HTTP_X_FORWARDED_FOR');
  3.     }
  4.     else {
  5.         $ip2 = getenv('REMOTE_ADDR');
  6.     }
__________________
Mis webs:
- Programador Web Autónomo
- Conciertos en Sevilla