title: PHP $_SESSION on form submit lost
body: <p>I'm lossing the session when I submit a form, until them I kept loged in my code.</p>
  
  <p>I'm sending the session values through the form in that way, but it does not work at all:</p>
  
  <pre><code>&lt;input type='hidden' name='loged' value='".$_SESSION["loged"]."'&gt;
  &lt;input type='hidden' name='role' value='".$_SESSION["role"]."'&gt;
  </code></pre>
  
  <p>Is that right?</p>
  
  <p>Thanks you</p>
  
  <p>of course before I get loged, I alredy worte this on the code:</p>
  
  <p>session_start(); </p>