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

Re: Uploader and PHPSESSID

Expand Messages
  • darrellgrundy
    So managed to fix this - it was a syntax issue - basically not rtfm ing properly. Required syntax for passing the POST params is:
    Message 1 of 4 , 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. =;
    Your message has been successfully submitted and would be delivered to recipients shortly.