For example, I start a session on index.php which has my form. In my form I have a name input and a submit button. I create this code:
$_SESSION['name'] = $_POST['name'];
header('Location: page.php');
On page.php I start the session and display the message
<h3>Thank you <?php echo $_SESSION['name'];?>, for signing up.</h3>
How is that posted name data passed to page.php?