session is not working in uploadify plugin of jquery
Question
session is not working in uploadify plugin...
Edit...
@ marcgg When i am trying to upload images using uploadify plugin.. My session is nt working at back end.. Boss what else i can say.. should i post the default code i got from uploadify plugin...
Solution
Flash doesn't forward cookies from the browser, so $_SESSION will not work correctly. (The code is most likely failing when you require_once the session file.)
To summarize the concept:
- Pass the session_id as a POST variable with Uploadify using scriptData
- Manually call session_id($_POST['session_id']) prior to calling session_start();
this will also work..
'scriptData': {'ts' : <?= time() ?>}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow