End a zend session

I am trying to implement the Flash loader in my Zend framework application, but I am having problems with the session.

Flash does not send cookie headers, and therefore the session is lost. I'm trying to send sessionId as a post parameter, and in my boot file I added session_id ($ _ POST ['session_id]), but this doenst seems to work.

I use a MySQL table as a session repository

I tried to debug the error and, as far as I can see, session_id is set, and the repository returns the court data from the database, but it does not seem to be set correctly in the global $ _SESSION.

And even the stranger seems to be working on my Windows computer, but not on the intermediate Linux server.

+4
flash upload session zend-framework
source share
3 answers

Do you know if you use Suhosin with PHP installation?

I heard several reports that Sukhosin does this for sessions, the solution in this case is to disable suhosin.session.cryptua in php.ini.

In any case, if this is not your problem, just to make sure the basics:

  • Make sure you pass your session_id() in a message from your Flash, for example, SWF Upload , this is done by passing this to the post_params configuration array value.
  • Make sure you call session_id($_POST['session_id]) before session_start()

But in any case, it's probably related to your PHP installation, if you say that it runs on Windows.

+4
source share

This is similar to the various errors that have been reported over the years, although in most cases they worked on Linux rather than windows.

http://framework.zend.com/issues/browse/ZF-2459 https://www.zend.com/en/forums/index.php?t=msg&goto=16104&S=de7d9b854db445eb37d0f33470cac6b0

and last month:

http://blog.rac.me.uk/2009/01/09/php-zend-session-dont-set-it-up-in-the-initalizer/

- MarkusQ

0
source share

Try the following in your controller action:

 session_write_close(); session_id($this->_getParam('PHPSESSID')); session_start(); 
0
source share

All Articles