title: pass php variable accross pages with redirect
body: <p>So, I looked through different posts and other resources and I still cannot make it work.
  Seems basic and common but I am lost.
  Here is my code.
  Page "test_start.php":</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Test&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;p&gt;Click &lt;a href="test_script.php"&gt;here&lt;/a&gt;&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Page "test_script.php":</p>
  
  <pre><code>&lt;?php
      session_start();
      $_SESSION['passed']="My text!";
      header("Location: test_ultima.php");
  ?&gt;
  </code></pre>
  
  <p>Page "test_ultima.php":</p>
  
  <pre><code>&lt;?php session_start(); ?&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Something&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;p&gt;This text shows, so redirect worked!&lt;/p&gt;
      &lt;?php
          echo "&lt;p&gt;Result isset: ".isset($_SESSION['passed'])."&lt;/p&gt;";
          echo "&lt;p&gt;I passed:".$_SESSION['passed']."&lt;/p&gt;";
      ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I click on the link I see the following:</p>
  
  <p>This text shows, so redirect worked!<br>
  Result isset:<br>
  I passed:<br></p>
  
  <p>What am I doing wrong?
  Please, if you can, also explein why and how it shall work...</p>
  
  <p><b>Added Note</b>: The first file is .php because in the end it will contain also some php code... this is obviously an example to first make it work and understand how it works...</p>