Tengo las Register Global off, y el session.use_trans_sid = 1.
index.php
Código PHP:
<?
session_start();
$_SESSION['variable']="valor";
?>
<a href="aver.php">1</a>
aver.php
Código PHP:
<?
session_start();
$variable=$_SESSION['variable'];
echo $variable;
?>
Cuando entro al index, me aparece esto.
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Pagina De Internet\index.php:1) in C:\Pagina De Internet\index.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Pagina De Internet\index.php:1) in C:\Pagina De Internet\index.php on line 2
En la carpeta sesiones, se me guarda variable|S:5:"valor";
Y cuando me voy a aver.php me aparecen los 2 warnings de antes y en la carpeta sesiones se me crea otro txt, sin nada, nose si lo tiene que hacer, y la variable, no me aparece en pantalla :(
y arriba me aparece
127.0.0.1/aver.php?PHPSESSID=498083782e8bd7d58a177327f96bb45 c
y el numero ese, coincide con el txt creado, en la carpeta sesiones, con variable|S:5:"valor";
Alguien me ayuda? :(