I am currently working on a Facebook application that runs on Amazon EC2. The app is working and most development is complete, however we cannot get sessions to persist. We have tried PHP default session handling, database handling and memcache handling using the PHP session save_path trick. We've tried messing with ini settings like auto_start, no avail.
The weird problem is that the initial session write DOES write, but any subsequent write after the first does not save. We can see the session cookie persisting, but the actual writing of data always fails after the first write. This weird problem applies to any session handler we use.
Our EC2 setup is as follows:
The session problem is reproducable in all environments. I am running out of ideas here as I have tried everything I know and anything I found while Googling.
For reference we are using CakePHP 2.1, but have also tried sessions outside of CakePHP.
Check the session.save_path
in your php.ini.
Read this too: http://php.net/manual/en/function.session-save-path.php
Also, you may want to post all the session.* parts of your php.ini.