I would like to get all values that I stored with session_cache_set() function.

Comments

rdeboer’s picture

@langelhc:

A workaround for this is to store all your values in a single array (or object), taking advantage of the fact that you can nest your arrays and/or objects.

  $data = array(
    'subbin1' => array(.......),
    'subbin2' => array(.......),
    //  ....
  );
  session_cache_set('all-my-values', $data);
  ...
  $data = session_cache_get('all-my-values');
langelhc’s picture

Status: Active » Closed (works as designed)

Thank you for your answer, you are right.