Opened 5 years ago

Last modified 5 years ago

#2788 assigned defect

Session does not store array order

Reported by: michael.ritter Owned by: michael.ritter
Priority: normal Milestone:
Component: Core Version: 5.0
Severity: normal Keywords:


If an array like

    3 => 'foo',
    // ...
    13 => 'bar',

is put into the session and read from it after page refresh, the array order is string based ('13' before '3') since the DB field for key is VARCHAR. In order to keep the same order of the array elements (even for associative arrays) we should store the order as a separate field in the DB.

Change History (1)

comment:1 Changed 5 years ago by michael.ritter

  • Owner changed from comvation to michael.ritter
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.