i am really not sure what is wrong, but I had funny issues with sessions
at times, try calling session_write_close(); before the end of your page
and after you have finished working with the $_SESSION variable, that
may be of help I have had problems with session variables getting chewed
before that always seemed to help.
hope it helps and good luck.