Ver Mensaje Individual
  #7 (permalink)  
Antiguo 27/07/2011, 11:47
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Problemas con $_SESSION

Tendría que ser algo así:
Código PHP:
Ver original
  1. <?php
  2.  
  3. if (isset($_POST['asdf']) && !empty($_POST['asdf'])) {
  4.       $_SESSION['var'] = $_POST['asdf'];
  5. }
  6.  
  7. echo $_SESSION['var'];

Saludos.