My session variables are empty when I login users and use a header redirect.
/* Login page */
session_register("myusername");
session_register("mypassword");
$_SESSION['myusername'] = $_POST['myusername'];
header("location:page.php");
/* page.php */
<?php echo $_SESSION[myusername]; ?>
session_start()on every pages ! including the page on which you register the session.