title: How can i get the session start username to echo out
body: <p>Iam having issues echoing the session username and have no idea were to start any more cause every thing i have tried keeps saying string to array conversion but idk how to get this to correctly work. here is the code that would check for the loged in saying you logged in would you like to log out.</p>
  
  <pre><code> if(isset($_SESSION['username'])&amp;&amp; !empty($_SESSION['username'])){
      echo "&lt;P id='loged'&gt;your loged in would you like to log out&lt;/p&gt;";
  
      echo'&lt;a href="logout.php"&gt;log out&lt;/a&gt;';
  
  
  
  
  
  }else{
      include 'logform.php';
  }
  </code></pre>