Ticket #687 (closed enhancement: wontfix)

Opened 4 years ago

Last modified 4 years ago

Multidimensional session storage system

Reported by: Radovan Owned by: david
Priority: normal Milestone: 0.11.1
Component: storage Version: 0.11.0
Severity: normal Keywords: session
Cc: Patch attached: no

Description

It would be fine have multidimensional SESSION storage system. We can have this session array

['user']['login']
['user']['role']
['user']['language']

But read('user') only return all array

This can be more useful

read('user.login')

Same like write() [remove()]

write('user', array()) OR write('user.login', $login)

Change History

Changed 4 years ago by david

  • status changed from new to closed
  • resolution set to wontfix

You should not use the storage directly. Use the user object, which also supports arrays:

$user->setAttribute('foo', array('bar' => 'baz'));

$user->getAttribute('foo[bar]');

Changed 4 years ago by Radovan

Thanks for answer

Note: See TracTickets for help on using tickets.