Flash upload - Logged in users?

Ive written a flash file uploader which I interface using javascript.

This allows me to upload files to the server and keep track of the progress of the uploads.

The issue I am having is that when uploading a file it does not detect that a user is logged in. This is obviously because the flash does not send the cookie with the PHPSESSID.

Is there a work around to this?

I have tried to do a session_id(value_from_flash) however with the framework I am using there is no way to put this before the session_start() =[

Have a look on the SWFUpload forum/examples it’s been discussed and there are workarounds there.