Ver Mensaje Individual
  #4 (permalink)  
Antiguo 14/04/2012, 07:05
matiasbmx
 
Fecha de Ingreso: febrero-2011
Mensajes: 124
Antigüedad: 13 años, 2 meses
Puntos: 4
Respuesta: Problema con sesiones

redirect("?a=0");
$_SESSION['SQLID'] = CuentaDatoNombre($_POST['usuario'], "id");
$_SESSION['Nombre'] = $_POST['usuario'];
$_SESSION['Pass'] = $_POST['pass'];

La funcion CuentaDatoNombre esta previamente declarada.
Acabo de ver que el problema es PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/portalup/public_html/pcu2/index.php:1) in /home/portalup/public_html/pcu2/index.php on line 2

En la estructura de la web tengo el session_start arriba de todo, <?
session_start();
include("inc/config.php");
include("inc/func.php");
include("inc/header.php");
require_once("inc/pag.php");
include("inc/footer.php");
?>

Que error puedo estar cometiendo si estoy seguro 100% que las cabeceras no se han enviado?