por que no intentas con $_SESSION[''], cuando el usuario este iniciando sesion le creas una variable de $_SESSION['var'] y cuando pase por la pagina que al principio verifique si esa variable $_SESSION['var'] existe que le muestre la pagina:
Código PHP:
Ver original<?php
if(!(isset($_SESSION['var']))){ /* Si no ha iniciado la sesion, vamos a login.php */
header("location: login.php"); }else{
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
// ...................................
</body>
</html>
<?php
}
?>
Pero si esa variable no existe o este vacía que lo mande a login.php de nuevo.