Add this to the failure page:
<?php
@session_start();
var_dump($_SESSION);
?>
That should give information about where and why the page is failing. If you view source and copy and paste the result here then I can help you interpret what it means.