Ver Mensaje Individual
  #9 (permalink)  
Antiguo 30/09/2011, 17:26
Avatar de Triby
Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 15 años, 8 meses
Puntos: 2237
Respuesta: funcionalidades obsoletas PHP 5.2.6 a Php 5.3.5


Yo me pregunto... que utilidad tiene iniciar sesion, eliminar su contenido y despues destruirla? y que, ademas, session_unset tiene esta advertencia:

Cita:
Do NOT unset the whole $_SESSION with unset($_SESSION) as this will disable the registering of session variables through the $_SESSION superglobal.
La logica esta mal, como ya te dijo Andres, solo debes tener un session_start(); y, lo que falta, es aprender a manejar $_SESSION para que no tengas que recurrir a session_unset() o session_destroy() hasta que el usuario haga click en "logout" o "finalizar sesion".
__________________
- León, Guanajuato
- GV-Foto