First, we need to make sure that your server is properly set to store session information.
use the sessionTest page from the following post to test the servers session management settings;
showpost.php?p=23826&postcount=2
If yoou are still having a problem, please compress the page into a zip archive and send the zip file instead of pasting the code into the message, also if you could provide a link where i could see the problem, that would be helpfull.