Opened 4 years ago

Last modified 4 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:
Cc:

Description

If an array like

array(
    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 4 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.