In my index.php file I call session_start() and set a couple of session variables. In a second PHP file I would like to access these session variables.
session_start() is the answer. And here's one more way of going about it:
This will ensure that a new session is started only if you do not have a current session on already. And ofcourse, as others have said, make sure to place this at the top of the html.