How can i solve this errors?
<blockquote>
  <p><strong>Possible Duplicates:</strong><br>
  <a href="http://stackoverflow.com/questions/3801178/php-headers-already-sent">PHP headers already sent</a><br>
  <a href="http://stackoverflow.com/questions/6005702/php-session-start-error">PHP session_start() error?</a>  </p>
</blockquote>



<p>What does this error mean?</p>

<pre><code>Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/html/index.php:7) in /home/content/html/index.php on line 44

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/html/index.php:7) in /home/content/html/index.php on line 44
</code></pre>

<p>Here is my code:</p>

<pre><code>session_start ();
if ($_SESSION['username']){
echo "User: " .$_SESSION['username']."&lt;br&gt;";
echo "&lt;a href='logout.php'&gt;Logout&lt;/a&gt; &lt;a href='account.php'&gt;Account&lt;/a&gt;";
}else{
echo "&lt;a href='index.php'&gt;Login&lt;/a&gt; &lt;a href='register.php'&gt;Register&lt;/a&gt;";
</code></pre>

<p>I have this code on my every page when I tested it on my localhost it works fine but when I uploaded the site on my remote server it displays this error. I can't understand why I can't start a session. I am using godaddy. Please help me.</p>
