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

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Obsolete
    • Affects Version/s: 4.4.0, 4.4.0beta2, 4.5.0alpha, 4.5.0beta1
    • Fix Version/s: 4.5.0beta2
    • Component/s: Misc
    • Labels:
      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

          Issue Links

            Activity

              People

              Assignee:
              andre1 André R
              Reporter:
              gg Gaetano Giunta
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: