title: php session lost after header() redirect
body: <p>This is first time i try to create a session.
  Also, after success login i redirect the page using header() function, but then on the redirected page i dont have session any more. There is the code:</p>
  
  <p>creating session:</p>
  
  <pre><code>function userLogin($user){
      session_start();
      $_SESSION['username'] = $user;
      header("Location: /~klemeno/vaja10?" . SID);
      exit;
  }
  </code></pre>
  
  <p>When browser redirect me i try to echo session like this:</p>
  
  <pre><code>if(isset($_SESSION['username'])){   
      echo $_SESSION['username'];
  }
  else{
      echo "No session :(";
  }
  </code></pre>