Ver Mensaje Individual
  #3 (permalink)  
Antiguo 02/07/2014, 18:51
Avatar de arcanisgk122
arcanisgk122
 
Fecha de Ingreso: junio-2010
Mensajes: 755
Antigüedad: 13 años, 11 meses
Puntos: 28
Respuesta: Eror con $_SESSION

Repondiendo a eso de declarar tengo una clase que inicialisa la sesion en cada pagina:

Código PHP:
Ver original
  1. <?php
  2. class Session{
  3.     function iniciarSession(){
  4.         session_name('NombredeSession');
  5.         session_start();
  6.         // Turn on all error reporting
  7.         error_reporting(E_ALL);
  8.     }
  9. }
  10. ?>

y yo la llamo de la siguiente forma:


Código PHP:
Ver original
  1. require_once("class.session.php");
  2. $sesion =   new Session();
  3. $sesion -> iniciarSession();//iniciamos sesion
__________________
Cooler Master Gladiator 600 - AMD PHENOM II X4 955 @ 3.5GHZ
GA-MA78GM-US2H - Super Talent 800 2GB x 2 Dual, (Unganged)
PSU Cooler Master eXtreme Power Plus 500W - Saphire R7-260OC-2GB