Added session_start to all php files to see if that helps passing the session around