um etwas pingelig zu sein
die variable heißt
$_SESSION
bps:
index.php
Code:
<?php
session_start();
$_SESSION["username"] = "row";
// now username is availiable on all session sites
?>
...
view username
...
next.php:
Code:
<?php
session_start();
echo $_SESSION["username"];
doOtherStuff();
session_destroy ();
// now username is not availiable any more
?>