Can't access $_SESSION variable in PHP called from Flash

Cody

New Member
I'm having difficulty accessing a \[code\]$_SESSION\[/code\] variable.I have \[code\]session_start()\[/code\] at the beginning of the file.I'm using jQuery uploadify and it calls a php backend file, which can't access \[code\]$_SESSION\[/code\] variables, although other files outside could.Could it have something to do with the way that flash (jquery uploadify) is calling the php?Does anyone know how to circumvent this?UPDATE: included session_id in the url but it didnt work.\[code\]$('#image_upload').uploadify({ 'uploader': '../../frontend/jquery/plugins/uploadify/swf/uploadify.swf', 'script': "controllers/image_upload.php?SID='.session_id()'", 'fileDataName': 'upload', 'method': 'POST', 'multi': 'true', 'fileDesc': 'tseting', 'fileExt': '*.jpg; *.jpeg; *.png', 'sizeLimit': '100000000', 'buttonText': 'Ladda upp bilder', 'auto': 'true'});\[/code\]EDIT: i think i know what the problem is.in the header information with livehtmlheader in FF it shows an error message:\[code\] HTTP/1.x 404 Not Found\[/code\]while the other regular page requests shows\[code\] HTTP/1.x 200 OK\[/code\]someone knows how to solve this?EDIT: sorry i've had wrong. it was not cause by 404, that was a request to another file. there is NO request when posting with uploadify! no html header is sent. i think it uses another approach to get the php file with flash (uploadify.swf). so there is no way of sending that sessid to my php file now i guess:( have to find some other way around
 
Back
Top