The code looks good to me. I'd probably need FTP access and a URL to reproduce this to debug it and see what is going on. Most likely your Session variables aren't working on the server. That is usually an issue with the session_save_path in the php.ini pointing to a non-existent directory.