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

ez still opens a db connection even when sessions are stored in the filesystem

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • 4.5.0beta2
    • 4.4.0, 4.4.0beta2, 4.5.0alpha, 4.5.0beta1
    • Misc
    • None

    Description

      This is not good for scalability, and we should only open connections to the db when needed.

      The rrors is in index.php: the opening of the session is still intertwined with the dbRequired required variable and with the opening of the connection to the db.

      • $dbRequired and $sessionrequired should not be related anymore (line 410-413)
      • on line 416, open a connection to the db if $dbRequired, but do not do anything wrt session
      • immediately afterwards, start session if sessionRequired && $ini->variable( 'Session', 'ForceStart' ) === 'enabled'

      Attachments

        Activity

          People

            andre1 andre1
            72f8acac-185f-4a54-9470-a7473f50daab@accounts.ibexa.co Gaetano Giunta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: