1//page1.php
2<?php
3
4 session_start();
5 $_SESSION['superhero'] = "batman";
6
7?>
8<a href="page2.php" title="">Go to the other page</a>
9
10//page2.php
11<?php
12
13 session_start(); // this NEEDS TO BE AT THE TOP of the page before any output etc
14 echo $_SESSION['superhero'];
15
16?>