title: PHP Reading Session in Form Submit File
body: <p>for secure i want to read the Session in the Form Submit and dont want to give the userid in hidden input field.</p>
  
  <p>The Problem is, i dont get anything in the action php file.</p>
  
  <p>i tried <code>print_r($_SESSION);</code> but there is nothing.
  If i add <code>print_r($_SESSION);</code> in the PHP file, where i will create a new mysql query with form, it gives userid = 1 back.</p>
  
  <p>Also i can <code>print_r($_SESSION['userid']);</code> to get only userid. But not in the action file where i will save the new post...</p>
  
  <p>In Short:
  The Session is clear after submit in the php file</p>