Sessions
Sessions allow you to store variables on the users browser as long as the browser window is open. The only catch is that sessions must be created before any output is sent to the browswer, meaning you have to put the code before your <HTML> tag. So, lets make our first session. Each session must start with this code. That tells the browser that you want to start a session.
Session Variables
To set session variables use this code $_SESSION['VARIABLE-NAME'] = WHAT YOU WANT IT SET TO; This will create a variable called "VARIABLE-NAME" in your session. To access the variable you just call $_SESSION['VARIABLE-NAME']