title: Is it more secure to use a session variable instead of a hidden input field?
body: <p>I know two ways to pass parameters between pages:</p>
  
  <ol>
  <li>using POST and <code>&lt;input type="hidden"&gt;</code></li>
  <li>using <code>$_SESSION["variable_name"]</code></li>
  </ol>
  
  <p>I find the second way easier, but I wonder if it is as secure as the first one, because in most tutorials I see, they use the first way.</p>
  
  <p>Is there any important reason to prefer the first way to second?</p>