Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/04/2009, 16:18
Avatar de anlhp
anlhp
 
Fecha de Ingreso: agosto-2008
Mensajes: 121
Antigüedad: 15 años, 8 meses
Puntos: 1
Respuesta: Problema con "session_start" en localhost...

por alguna casualidad estas tratando de iniciar la sesion en medio de codigo html?
por ejemplo
Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title></title>
	</head>
	<body>
          <?php session_start(); ?>
	</body>
</html> 
si ese es el caso el problema es lo que te dice apache, sesion_start() tienes que llamarlo antes de mandar cualquier cabecera al navegador, lo correcto seria:
Código HTML:
<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title></title>
	</head>
	<body>
	</body>
</html>