you can use session variables to store your users info. im only a newb, but something like this should be on the right trak.
at the top of your login page you need to start sessions before any html is sent to the browser:
<?php
session_start();
?>
then, where you log the user in set the session variables:
<?php
if (!isset($_SESSION['user_name'] && $_SESSION['user_email'])) {
$_SESSION['user_name'] == $_POST['user_name'];
$_SESSION['user_email'] == $_POST['user_email'];
}
?>
then on any page you wish to see if the user is logged in:
<?php
session_start();
if (!isset $_SESSION['user_name'] && $_SESSION['user_pass'])) {
// user not logged in, redirect to login page
} else {
// user logged in, display page
}
?>