Are you using session_start() on both pages ?

Check if you are unsetting it somewhere in your code after it was set.