This commit is contained in:
2024-03-04 13:49:12 +01:00
parent ac6c9c7d8a
commit cea9405670
28 changed files with 1511 additions and 54 deletions

View File

@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>INTRO8 PHP SESIONES2</title>
</head>
<body>
<?php
//Conectar a una Sesión
session_start();
//Añadimos una variable
$_SESSION['edad'] = '30';
// Accedo a datos de la sesión
echo $_SESSION['nombre'];
echo '<br>';
echo $_SESSION['apellido'];
echo '<br>';
echo $_SESSION['apodo'];
echo '<br>';
echo $_SESSION['edad'];
?>
</body>
</html>