That message means your program had some output before you called
session_start. You can't send anything to the browser before that since setting the session cookie has to happen in the HTTP headers, which come before the response body.
track-online-users.php are the same on both servers, check for blank lines before the opening
<?php in both files, byte-order-marks at the start of the file, etc.