1

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...

2
  • What's going on? Care to show some code? Commented Feb 10, 2010 at 16:05
  • The title is longer than the question?!? Can you give more info? Commented Feb 10, 2010 at 16:07

1 Answer 1

3

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:

  1. Pass the session_id as a POST variable with Uploadify using scriptData
  2. Manually call session_id($_POST['session_id']) prior to calling session_start();

this will also work..

         'scriptData': {'ts' : <?= time() ?>}
Sign up to request clarification or add additional context in comments.

1 Comment

Actually, Flash does forward cookies. IE cookies. Regardless of the hosting browser. Nice, huh? An asp.net solution can be found here:skysanders.net/subtext/archive/2010/03/14/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.