im only a php newb too, but im from an asp background and session or the idea of session are much the same. (just dont relie on my code hehe) i'll try to explain, sessions are just variables created that are unique to each user. each user can have there own $_SESSION['logged_in'] variable set for instance.
no other users should be able to gain access to this variable, so whenever you check this variable you are checking it for the current user.
so, on page one.php you could have someone log in:
<?php
start_session();
$_SESSION['logged_in'] = TRUE;
?>
then on any page where your user needs to be logged in to view the page, you could check this variable:
<?php
start_session();
if (!$_SESSION['logged_in'] {
// user not logged in, show login form
} else {
// user logged in, display page
}
?>
like i said, dont relie on my code, but i hope this helps with some sort of explination.