title: uploadify session problem
body: <p>Hello I'm using Uploadify to upload photos.
  When user is logged, his <em>ID</em> is stored in session, but after uploading anything by Uploadify, his <em>ID</em> is deleted from session, so it looks like he is not logged in.</p>
  
  <p>I tried to pass his <em>ID</em> with <em>session ID</em> and <em>session name</em> as <strong>scriptData</strong>, but it did not work either. When user is logged in and tries to upload sth, after upload session is clean (there is no <em>user ID</em> and <em>uploaded photo name</em> stored). 
  When the user is not logged in, session contains <em>uploaded photo name</em>...</p>
  
  <p>Here is the .js:</p>
  
  <pre><code>$(document).ready(function() {
        $('#fileUpload').uploadify({
          'uploader'      : '{/literal}{$PATH_TO_ROOT}{literal}scripts/js/uploadify/uploadify.swf',
          'script'        : '{/literal}{$URL_PREFIX}{$tc-&gt;get('uploadify')}{literal}',
          'scriptData'    : {'PHP_SESS_ID': '{/literal}{$sessionId}{literal}','PHP_SESS_NAME':'{/literal}{$sessionName}{literal}'{/literal}{if $user},'PHP_SESS_UZIV':'{$user-&gt;get('Id')}'{/if}{literal}},
          'cancelImg'     : '{/literal}{$PATH_TO_ROOT}{literal}scripts/js/uploadify/cancel.png',
          'fileDataName'  : 'Filedata',
          'fileExt'       : '*.jpg;*.gif;*.png',
          'fileDesc'      : 'Image Files',
          'sizeLimit'     : 5242880, //  5x1024x1024 bytes        
          'auto'          : false,
  
          'buttonText'    : 'VYBERTE FOTKU',
          'buttonImg'     : '{/literal}{$PATH_TO_ROOT}{literal}scripts/js/uploadify/uploadify-butt-{/literal}{$lang}{literal}.jpg',
          'rollover'      : true,
          'width'         : 300,
          'height'        : 45,
          'hideButton'    : false,
          'method'        : 'post',
          'multi'         : false,
  
          'onAllComplete' : function(event,data) {
              window.location.href = '{/literal}{$URL_PREFIX}{$tc-&gt;get('photo-uploaded')}{literal}';
          }
        });
  });
  </code></pre>
  
  <p>Here is the backend script:</p>
  
  <pre><code>if (!empty($_FILES)) {
  
      $session_id = $_POST["PHP_SESS_ID"];
      $session_name = $_POST["PHP_SESS_NAME"];
  
      session_id($session_id);
      session_name($session_name);
  
      if (isset($_POST["PHP_SESS_UZIV"])) {
          $user_id = $_POST["PHP_SESS_UZIV"];
          $_SESSION['sess_us_id'] = $user_id;
      }
  
      $tempFile = $_FILES['Filedata']['tmp_name'];
      $targetPath = dirname(dirname(__FILE__)) . '/img/';
  
      $newName = time() . '_' . StripAccent($_FILES['Filedata']['name'], '', false, false);
  
      $targetFile =  str_replace('//','/',$targetPath) . $newName;
  
      $savePic = savePic($targetPath, $newName, -590, -500, 100, $tempFile);
      $saveThumb = savePic($targetPath, getThumbName($newName), -185, -142, 100, $targetFile);
  
      $_SESSION['uploadedPhoto'] = $newName;  
  }
  </code></pre>
  
  <p>Thanks for help</p>
  
  <p><strong>EDIT:</strong> Well I've found out this code works on one, but not the other server...</p>