Os cuento un poco:
En mi php.ini he añadido:
session.save_path = /tmp/sesion_logs
Los codigos son de un manual y son los siguientes:
Mandar_nombre.php:
<?php
session_start();
$_SESSION['username']="Joe12345";
$_SESSION['authuser']=1;
?>
<HTML>
<HEAD>
<TITLE>Find my Favourite Movie</TITLE>
</HEAD>
<BODY>
<?php
//echo "<a href='http://www.gasuco.com/pruebas_php/paso_variables/url/variables_url2.php?favmovie=Stripes'>";
//echo "CLick here to see information about my favourite movie!";
//echo "</a>";
//OTRA FORMA
$myfavmovie=urlencode("Life of Brian");
echo "<a href='http://www.gasuco.com/pruebas_php/paso_variables/url/variables_url2.php?favmovie=$myfavmovie'>";
echo "CLick here to see information about my favourite movie!";
echo "</a>";
?>
</BODY>
</HTML>
Moviesite.php:
<?php
session_start();
$_SESSION['username']="Joe12345";
$_SESSION['authuser']=1;
?>
<HTML>
<HEAD>
<TITLE>Find my Favourite Movie</TITLE>
</HEAD>
<BODY>
<?php
//echo "<a href='http://www.gasuco.com/pruebas_php/paso_variables/url/variables_url2.php?favmovie=Stripes'>";
//echo "CLick here to see information about my favourite movie!";
//echo "</a>";
//OTRA FORMA
$myfavmovie=urlencode("Life of Brian");
echo "<a href='http://www.gasuco.com/pruebas_php/paso_variables/sesion/moviesite.php?favmovie=$myfavmovie'>";
echo "CLick here to see information about my favourite movie!";
echo "</a>";
?>
</BODY>
</HTML>
Me saltan los siguientes errores al lanzar el link:
Warning: session_start() [function.session-start]: open(/tmp/sesion_logs/sess_63f77cadda1def77fd5b2ca8305caf2c, O_RDWR) failed: Permission denied (13) in /var/www/pruebas_php/paso_variables/sesion/mandar_nombre.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/pruebas_php/paso_variables/sesion/mandar_nombre.php:2) in /var/www/pruebas_php/paso_variables/sesion/mandar_nombre.php on line 2
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/pruebas_php/paso_variables/sesion/mandar_nombre.php:2) in /var/www/pruebas_php/paso_variables/sesion/mandar_nombre.php on line 2
CLick here to see information about my favourite movie!
Warning: Unknown: open(/tmp/sesion_logs/sess_63f77cadda1def77fd5b2ca8305caf2c, O_RDWR) failed: Permission denied (13) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp/sesion_logs) in Unknown on line 0
Alguien sabe que me esta fallando??
ESpero vuestras respuestas.
Salu2
alzehimer_cerebral