Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-26043

PHP Garbage Collector symfony configuration logs out user of Platform UI

    XMLWordPrintable

Details

    Description

      Due to the fact that Symfony configuration has the gc_probability: 1 by default, instead of using the php.ini one of '0'.
      This means that there is a 1% chance that the GC process will start on each request.
      Since Platform UI make hundreds of requests the 1% probability will occur very fast.
      A fix for this problem is to set the gc_probability: 0 in symfony by adding to config.yml the following:

      framework:
          session:
              gc_probability: 0
      

      The real problem is related with the fact that by default www-data user, using php-fpm doesn't has permissions to remove the session garbage (/var/lib/php5/session)

      Attachments

        Activity

          People

            Unassigned Unassigned
            pedro.resende-obsolete@ez.no Pedro Resende (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: