[man]session[/man]
Sessions are helpful for storing data across pages. This is required for things like user login/authentication because HTTML is a stateless protocol. Start a session with session_start(); Once you've done this, assign session variables by putting them in the global $SESSION array - $SESSION['name'] = "Logan";
On other pages, once you start the session, you can utilize the session variables used on other pages:
Page1.php
session_start();
$_SESSION['name'] = "Logan";
Page2.php
session_start();
echo $_SESSION['name']; // Outputs "Logan" (without quotes)