uploading sessions with php not outputing
<p>I want to view data stored in an uploading session but all I get is 'Null', am I going about this the wrong way?</p>

<pre><code>session_start();
if(isset($_POST['submit'])){
     $target = "test/";
     $target = $target . basename('test') ;
     $file = ($_FILES["uploaded"]["name"]);
     $key = ini_get("session.upload_progress.prefix") . $_POST[ini_get("session.upload_progress.name")];

    var_dump($_SESSION[$key]);

if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)){echo "done";}else echo "error";
}
</code></pre>

<p>and the html:</p>

<pre><code>&lt;form action="upload.php" method="POST" enctype="multipart/form-data"&gt;
   &lt;input type="hidden" name="&lt;?php echo ini_get("session.upload_progress.name"); ?&gt;" value="test" /&gt;
   &lt;input type="file" name="uploaded" /&gt;
   &lt;input type="submit" name='submit' /&gt;
&lt;/form&gt;
</code></pre>
