Perhaps your script is dying because session_start fails with "already sent headers"? This can happen, for example, if your test computer and production server do not encode newlines in the same way ...
Errors probably don't appear on your production server, try something like this:
ini_set('display_errors', 1); session_start();
and see if you get something useful.
source share