Undefined index con variables de Sesion
Publicado por Undefined index con variables de Sesion (3 intervenciones) el 06/06/2023 16:21:36
Buenas tengo el siguiente codigo,
PAGINA 1
<?php
session_start();
?>
<?php $_SESSION["sese"]= "HOLA MUNDO";
echo "EL CONTENIDO DE la variable es :----> ".$_SESSION['sese']; ?> <p>
<a href="dos.php">Siguiente</a>
---------------------------------------
DE LA PAGINA ANTERIOOR hago enlace a la PAGINA 2 PARA QUE ME muestre el valor de la variable $_SESSION["sese"]
PAGINA 2 dos.php
<?php
session_start();
?>
<?php
echo "PAGINA DOS: EL CONTENIDO DE la variable es :----> ".$_SESSION['sese'];
?>
<p><a href="tres.php">Siguiente</a>
------------------------------------------------
genera el siguiente error en la pagina dos Notice: Undefined index: sese in C:\xampp\htdocs\serbulo\ejemplo sesiones\dos.php on line 15 PAGINA DOS: EL CONTENIDO DE la variable es :----> Siguiente
ya he utilizado tres versiones distintas de xampp y nada el mismo problema
xampp-win32-5.6.19-0
xampp-win32-7.1.11-0
xampp-windows-x64-8.1.10-0
PAGINA 1
<?php
session_start();
?>
<?php $_SESSION["sese"]= "HOLA MUNDO";
echo "EL CONTENIDO DE la variable es :----> ".$_SESSION['sese']; ?> <p>
<a href="dos.php">Siguiente</a>
---------------------------------------
DE LA PAGINA ANTERIOOR hago enlace a la PAGINA 2 PARA QUE ME muestre el valor de la variable $_SESSION["sese"]
PAGINA 2 dos.php
<?php
session_start();
?>
<?php
echo "PAGINA DOS: EL CONTENIDO DE la variable es :----> ".$_SESSION['sese'];
?>
<p><a href="tres.php">Siguiente</a>
------------------------------------------------
genera el siguiente error en la pagina dos Notice: Undefined index: sese in C:\xampp\htdocs\serbulo\ejemplo sesiones\dos.php on line 15 PAGINA DOS: EL CONTENIDO DE la variable es :----> Siguiente
ya he utilizado tres versiones distintas de xampp y nada el mismo problema
xampp-win32-5.6.19-0
xampp-win32-7.1.11-0
xampp-windows-x64-8.1.10-0
Valora esta pregunta


0