title: swfupload session problem destroy session
body: <p>I have a problem with swfupload. I am passing session_id() like this</p>
  
  <p>Note : It is working fine on my local machine, am using MAMP. but its not working at server</p>
  
  <pre><code>  /upload-file.php?s='&lt;?php echo session_id()';
    /upload-file.php?s=189477fcfa1ec7f630e70a09e1e84cae
  </code></pre>
  
  <p>but its not maintaining session and destroying my current session (logging me out) here is code in file upload. </p>
  
  <pre><code>&lt;?php
  
   if(isset($_GET['s'])) {
  
  session_id($_GET['s']);
  session_start();
  
      require_once 'admin/class/user.php';
  
      $u = new User();
  
      //Check for user logged in
  
      if($u-&gt;islogged() == FALSE) {
  
        header("location: index.php");
  
     exit();
  
      code continue ..... 
   }
  </code></pre>
  
  <p>because am not logged in server redirect me to the index.php </p>
  
  <p>this is swfupload debugger window output</p>
  
  <pre><code> SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
   SWF DEBUG: 
   SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.jpg
   SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
   SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
   SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1
   SWF DEBUG: StartUpload: First file in queue
   SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
   SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload.  Starting upload to /upload-file.php?s='189477fcfa1ec7f630e70a09e1e84cae' for File ID:  SWFUpload_0_0
   SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
   SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 317793. Total: 317793
   SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 302.
   SWF DEBUG: Event: uploadComplete : Upload cycle complete.
   SWF DEBUG: StartUpload: First file in queue
   SWF DEBUG: StartUpload(): No files found in the queue.
  </code></pre>