Dot separator while worting data into session

Hi everybody,

please could anyone explain what doea this piece of code mean?


In particular I would like to know exactly what dot between Administrator and temporaryData means: ‘Administrator.temporaryData’

Thank you!

It will set a value into your session array like this:

  'Administrator' => [
    'temporaryData' => 'value found at $this->request->data[‘Administrator’]'

Each ‘dot’ will step another level deeper.

Look at ‘dot notation’ here’

Thankbyou very much. That was the answer I was searvhing for.