yeah, try adding:
<?php
session_commit();
?>
immediately after that code. I think it should work as it does appear they are both set correctly and the session is started on both pages since both pages use session variables elsewhere that appear to be working.