Im breaking my head against the table right now. I have a flash batch uploader, which puts every file through upload.php which thumbnails the images, and moves them to appropriate directories. When I upload in IE, it functions perfectly (never thought I’d say this), but in Firefox, when flash executes upload.php it has its own session variable, thats different from the one that is used to browse the rest of the site, so a logged in user is no longer logged in, so their userid isnt read nor inserted into the DB, and ever a simple piece of code like this:
$_SESSION['uploaded_ids'][] = $inserted_id;
Overwrites the entire array with just the last ID, since it cannot read it to append it.
What can I do? the uploader in question is this:
If the php file is being executed via some form of ajax, and not directly from the browser, I believe the session is not persistant. IICRC Firefox treats ajax calls as new browser sessions.
If this sounds like it could be the case, I usually fix these problems by manually attaching the PHPSESSID to the end of the ajax call. Hopefully this helps.