This is the code:
Code: Select all
<?php
session_start();
$_SESSION['name']='dexter';
echo $_SESSION['name'];
?>
Code: Select all
<?php
session_start();
$_SESSION['name']='dexter';
?>
<a href="page2.php">Go to this page</a>
Code: Select all
<?php
echo $_SESSION['name'];
?>