title: Why not sample the session varibles of a PHP file that is in the same directory from another PHP file if it shows?
body: <p>I have a Drupal site</p>
  
  <p><code>mydomain.com/</code></p>
  
  <p>Within a block full php I have the following:</p>
  
  <pre><code>&lt;?php
  session_start ();
  echo json_encode($_SESSION['playlist']); 
  ?&gt;
  </code></pre>
  
  <p>This code shows me correctly my array inside the session varible
  example:</p>
  
  <pre><code>[
      "{\"title\":\"emo\",\"artist\":\"a href=\",\"mp3\":\"\"}",
      "{\"title\":\"emo\",\"artist\":\"a href=\",\"mp3\":\"\"}",
      "{\"title\":\"Hablando Claro Pegando Fuerte\",\"artist\":\"\",\"mp3\":\"http://red.comppa.com/sites/default/files/audios/01%20radionovela%20hablando%20claro%20pegando%20fuerte.mp3\"}",
      "{\"title\":\"desobedicia\",\"artist\":\"a href=\",\"mp3\":\"\"}"
  ]
  </code></pre>
  
  <p>But if I have another file called <code>getsession.php</code> with the same code:</p>
  
  <pre><code>&lt;?php
  session_start ();
  echo json_encode($_SESSION['playlist']); 
  ?&gt;
  </code></pre>
  
  <p>Then I dirigo to <code>mydomain.com/getsession.php</code> and shows me:</p>
  
  <pre><code>null
  </code></pre>