2
0

Files from 25-03-26 and added missing Files

This commit is contained in:
Schuledaniel
2026-03-25 15:04:37 +01:00
parent f5e1b1af72
commit 9238cba6f3
10 changed files with 348 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sessions in PHP: Schritt 1</title>
</head>
<h1>Sessions in PHP</h1>
<h2>Schritt 1</h2>
<body>
<?php
session_start(); //Eine Sitzung beginnen
$sId=session_id(); //Auslesen der SessionID
//Speichern von Werten in der superglobalen Variable Session
$_SESSION['vorname'] = "Michael";
$_SESSION['nachname'] = "Staudt";
echo "SID: $sId<br>";
echo "<a href ='session_2.php'><br>zur nächsten Seite</a>";
?>
</body>
</html>