Ver Mensaje Individual
  #3 (permalink)  
Antiguo 02/10/2006, 13:52
jglorenzosqr
 
Fecha de Ingreso: octubre-2005
Mensajes: 778
Antigüedad: 19 años, 5 meses
Puntos: 1
Ok, utilizo la función SESSION_START() y $_SESSION["variable"] asi :

script1.php :
<?php
SESSION_START();
$_SESSION["privilegio"] = $reg_actual['privilegios'];

echo "<META HTTP-EQUIV='Refresh' CONTENT='0; url=http://www.zcojedes.me.gob.ve/tramite.php'>";

script2.php :
<?php
SESSION_START();
echo "Privilegio del usuario en script TRAMITE.php : ".$_SESSION["privilegio"];

Luego aparece un error. Que significa este error con la funcion SESSION_START(); :
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/zcojedes/nuke/tramite.php:3) in /var/www/zcojedes/nuke/tramite.php on line 11

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/zcojedes/nuke/tramite.php:3) in /var/www/zcojedes/nuke/tramite.php on line 11
Privilegio del usuario en script TRAMITE.php : 1