Loading ...
Sorry, an error occurred while loading the content.

50950Re: Uploader and PHPSESSID

Expand Messages
  • darrellgrundy
    Aug 3, 2009
    • 0 Attachment
      So managed to fix this - it was a syntax issue - basically not rtfm'ing properly. Required syntax for passing the POST params is:

      uploader.uploadAll("http://site.com/photo_upload.php", "POST", {PHPSESSID: "'; echo session_id(); echo '"}, "Filedata");


      ... i.e. you need the double quotes surrounding the session_id so that it results in {PHPSESSID: "12345656789"}

      And then at the server side the following:

      session_id($_POST['PHPSESSID']);
      session_start();

      ... now works like a charm.

      That's me over and out good buddies. =;
    • Show all 4 messages in this topic