vale vale... amigo cluster, antes que nada, debo agradecerte tu dedicación!
Fijate que he hecho cambios significativos. en la pág que llama los frames tengo,
Código PHP:
<?php
include ("../pages/includes/funciones.php");
session_start();
$_SESSION['ci']=1;
$_SESSION['album']=291;
$r_a=listar("select * from album where id_album=$album and activar=1","No existe albums con esos parámetros.");
$f_a=pg_fetch_array($r_a,NULL,PGSQL_ASSOC);
$r_f=ejecutar("select img,id_foto from fotos where id_album=$album and activar=1 order by numero asc limit 1");
$f_f=pg_fetch_array($r_f,NULL,PGSQL_ASSOC);
$_SESSION['carpeta']=$f_a[carpeta];
$_SESSION['id_foto']=$f_f[if_foto];
?>
el html de la misma pág
Código HTML:
<html>
<frameset rows="*" cols="177,*">
<frame src="barrafotos2.php name="izq">
<frameset rows="*" cols="140,*">
<frame src="medio6.php name="cen">
<frame src="detallefoto2.php name="der">
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>
Luego tengo en cada uno de los frames,
Código PHP:
<?php
include ("../pages/includes/funciones.php");
session_start();
echo "id de sesión: ".session_id();
echo "Album: ".$_SESSION['album']."id foto: ".$_SESSION['id_foto'];
?>
El valor del session_id() me lo muestra en lso 3 frames, pero las variables,$_SESSION['album'] y $_SESSION['id_foto'] sólo funciona para los frames izq y cen, para el frame der no.
Por otro lado, tengo en los frames izq y der, los siguientes warning,
Warning: session_start(): Cannot send session cache limiter - headers already sent...
Warning: Cannot modify header information - headers already sent by...
Entiendo que para el primer warning, es un problema de acceso a la carpeta /tmp donde se almacenan las variables de sesión... pero, las está mostrando, parcialmente al menos...