I am trying to implement a Flash uploader in my Zend framework application but I am having problems with the session.
The Flash does not send any cookie headers and this is why the session is lost. I am trying to send the sessionId as a post param and in my bootstrap file I added a session_id($_POST[‘session_id]) but this doenst seem to work.
I am using a MySQL table as session storage
I tryed to debug the error and as far as I see, the session_id is set, and the storage returns the corect data from the database but it doesn’t seem to be set correctly in the $_SESSION global.
And even stranger it seems to work on my Windows computer but not on the Linux staging server.
Do you know if you are using Suhosin with your PHP installation?
I’ve heard a few reports of Suhosin doing this to the sessions, solution in this case is to disable
suhosin.session.cryptuain php.ini.Anyway, if that’s not your problem, just to be sure with the basics:
session_id()in a post from your Flash, for example, with SWF Upload, this is done by passing it in thepost_paramsvalue of the configuration array.session_id($_POST['session_id])beforesession_start()But anyway, it is probably related to your PHP installation if you are saying it works under your Windows environment.