CSession class handles PHP sessions the wrong way

XMLWordPrintable

    • Type: Problem report
    • Resolution: Duplicate
    • Priority: Trivial
    • None
    • Affects Version/s: 3.4.0alpha1
    • Component/s: Frontend (F)

      The way CSession class handles PHP sessions is invalid. Any call for setValue, getValue, etc. starts with the call to session_start (that should be done once for the whole execution) causes PHP to set additional cookie with the same value.

      The simplified test-case is:
      for($i = 0; $i < 1000; $i++)

      { CSession::getValue('test'); }

      Result is:

            Assignee:
            Unassigned
            Reporter:
            Vjaceslavs Bogdanovs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: